Live Scrobbling
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:
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?
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.
I added an option in the settings to decide if Amperfy should scrobble streamed items too:
Now playing is implemented in e4e864c8d69f764d37c6ec7eafa883934cbc214d.