mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
fix: refined scrobbling logic for the NowPlaying feature across all flavors
This commit is contained in:
parent
5b8e7d1404
commit
1d3a32be5d
2 changed files with 7 additions and 4 deletions
|
|
@ -175,7 +175,6 @@ class MediaService : MediaLibraryService() {
|
|||
|
||||
override fun onTracksChanged(tracks: Tracks) {
|
||||
ReplayGainUtil.setReplayGain(player, tracks)
|
||||
MediaManager.scrobble(player.currentMediaItem, false)
|
||||
}
|
||||
|
||||
override fun onIsPlayingChanged(isPlaying: Boolean) {
|
||||
|
|
@ -184,8 +183,9 @@ class MediaService : MediaLibraryService() {
|
|||
player.currentMediaItem,
|
||||
player.currentPosition
|
||||
)
|
||||
} else {
|
||||
MediaManager.scrobble(player.currentMediaItem, false)
|
||||
}
|
||||
MediaManager.scrobble(player.currentMediaItem, false)
|
||||
}
|
||||
|
||||
override fun onPlaybackStateChanged(playbackState: Int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue