leinelissen / jellyfin-audio-player

🎵 A gorgeous Jellyfin audio streaming app for iOS and Android
https://fintunes.app
MIT License
657 stars 26 forks source link

[Enhancement] Automatically Track Songs Played Offline #169

Open CodeWithMa opened 9 months ago

CodeWithMa commented 9 months ago

I suggest adding a new feature to the app that will make it easier for users to keep track of the songs they listen to while offline. Currently, the app doesn't save or remember the songs played in Offline Mode. Scrobbling is a way to keep a record of the songs you listen to and get personalized music suggestions. It's important to include the songs played offline in this record to have a complete view of your music preferences.

Link to related issue: https://github.com/leinelissen/jellyfin-audio-player/issues/62#issuecomment-1026569747

Let me know if you need more details or have any questions about this feature request. Thank you!

leinelissen commented 9 months ago

Hey @CodeWithMa, thanks for creating the issue. This might not be as straightforward as it looks. We currently use a session API from Jellyfin to show in realtime what's going on. I'm unsure whether Jellyfin even has support for batch sending scrobbling events. If we manage to find this out, then we have find a nice way of gathering the events when offline.

CodeWithMa commented 9 months ago

Related to scrobbling when offline: https://github.com/FoxxMD/multi-scrobbler/issues/87

Jellyfin has the following method to mark an item as played: https://api.jellyfin.org/#tag/Playstate/operation/MarkPlayedItem

leinelissen commented 9 months ago

Hey, that's a promising start. Thanks for that!