fix: fix "Now Playing" scrobble implementation

This commit is contained in:
CappielloAntonio 2024-02-18 19:35:49 +01:00
parent 1980e53a27
commit 10b9d7ec76
2 changed files with 2 additions and 0 deletions

View file

@ -175,6 +175,7 @@ class MediaService : MediaLibraryService() {
override fun onTracksChanged(tracks: Tracks) {
ReplayGainUtil.setReplayGain(player, tracks)
MediaManager.scrobble(player.currentMediaItem, false)
}
override fun onIsPlayingChanged(isPlaying: Boolean) {

View file

@ -120,6 +120,7 @@ class MediaService : MediaLibraryService(), SessionAvailabilityListener {
override fun onTracksChanged(tracks: Tracks) {
ReplayGainUtil.setReplayGain(player, tracks)
MediaManager.scrobble(player.currentMediaItem, false)
}
override fun onIsPlayingChanged(isPlaying: Boolean) {