amperfy icon indicating copy to clipboard operation
amperfy copied to clipboard

Live Scrobbling

Open Jaffex opened this issue 1 year ago • 5 comments

When listening to a song with other players like play:Sub, substreamer or the navidrome web interface itself, when listening to a song, it immidiately appears as scrobbling on last.fm like so: image

When listening via Amperfy, the song does not display that state but only shows up once it has reached the criteria for "has been listened to".

Would it be feasible to implement this in amperfy as well?

Jaffex avatar Jan 27 '24 14:01 Jaffex

This whole scrobble topic is quite complex. You opend https://github.com/BLeeEZ/amperfy/issues/218 too. I want to answer both requests here:

Scrobbling is handled in slightly different on each music server. Amperfy will only send scrobble information to server if the song is played from cache and is played long enough. If the song is streamed no scribble information is sent at all. Somer server account streaming as currently playing, this is why no scrobble information is not send. Navidrom doesn't count streamed songs as currently played, which is from point of view not correct. To work absolutely correct on each music server instance Amperfy must be differently configured for each music server type, version (due to changes in the scribble mechanic on server) and so on. I only differentiate between API types in Amperfy (Ampache API/ Subsonic API). I will stick with the current scrobble system in Amperfy since it is compatible with most music servers.

BLeeEZ avatar Jan 30 '24 13:01 BLeeEZ

I added an option in the settings to decide if Amperfy should scrobble streamed items too: Simulator Screenshot - iPhone 15 - 2024-02-20 at 19 43 10

BLeeEZ avatar Feb 20 '24 18:02 BLeeEZ

Now playing is implemented in e4e864c8d69f764d37c6ec7eafa883934cbc214d.

BLeeEZ avatar Apr 22 '24 18:04 BLeeEZ