FoxxMD / multi-scrobbler

Scrobble plays from multiple sources to multiple clients
https://foxxmd.github.io/multi-scrobbler
MIT License
299 stars 14 forks source link

Last.fm scrobbles are not being identified. #133

Closed Ardakilic closed 5 months ago

Ardakilic commented 5 months ago

Hello,

I'm trying to periodically sync last.fm scrobbles to my maloja instance. Recently I stumbled upon Reddit on about this repository, hope you remember :)

Today I got the chance to try it out, but it simply does not work for me on last.fm.

Here's roughly the corresponding part of my docker compose file:

multi-scrobbler:
  image: foxxmd/multi-scrobbler
  container_name: multi_scrobbler
  environment:
    - TZ=Europe/Istanbul
    - MALOJA_URL=http://maloja:42010
    - MALOJA_API_KEY=
    - LASTFM_API_KEY=
    - LASTFM_SECRET=
    - LASTFM_REDIRECT_URI=http://publicurl/lastfm/callback
    - PUID=1000
    - PGID=1000
    - LOG_LEVEL=debug
  volumes:
    - /home/arda/docker/multiscrobbler:/config
  ports:
    - localport:9078
  restart: unless-stopped
  networks:
    - ardanet

After the initial boot, I authenticated last.fm, and restarted the container, and its status went green and tokens could show my last.fm username correctly.

The token's callback url matches with mine.

image

Here's my last.fm user, if that would matter: https://www.last.fm/user/ardadev

I attached my debug logs, if that would matter, but I could not make it out much.

Also, I waited for 20 mins for periodic schedule check, still nothing.

Could you check please? What am I missing?

Thanks in advance!

scrobble-2024-01-30.log

Ardakilic commented 5 months ago

For scheduler logs:

When the scheduler is due time, it echoes like this:

2024-01-30T03:15:33+03:00 verbose : [Heartbeat] [Clients] Checked Dead letter queue for 2 clients.
2024-01-30T03:15:33+03:00 verbose : [Heartbeat] [Clients] Starting check...
2024-01-30T03:15:33+03:00 verbose : [Heartbeat] [Sources] Checked 0 sources for restart signals.
2024-01-30T03:15:33+03:00 verbose : [Heartbeat] [Sources] Starting check...

However, at this state, there are a bunch songs which my last.fm profile shows as scrobbled, but multi-scrobbler does not identify.

Some things come to my mind, such as timezone, but I have not yet checked the code how checking is handled.

Ardakilic commented 5 months ago

I checked this morning, and it still does not fetch new scrobbles from last.fm. Scheduler is running without issues.

image

FoxxMD commented 5 months ago

Hi

This is because using ENVs for Last.fm setup is only supported when using Last.fm as a Client. You can see this in your screenshots of where it says Lastfm (Client). You need to setup Last.fm as a Source which can only be done using a file-based configuration.

Ardakilic commented 5 months ago

Heya,

Thanks @FoxxMD for the prompt reply, that actually makes a lot of sense! I assumed multi-scrobbler is consuming the scrobbles from the "client", and did not think over it much since source and clients share a similar configuration. I'll modify my configuration later this evening and let you know.

Thanks!

Ardakilic commented 5 months ago

Thank you @FoxxMD , can confirm it's working as intended now. It even caught and instantly synced yesterday's scrobbles to my maloja instance. Thanks again!