Merge pull request #7242 from libre-tube/fix-watch-positions-disabled

fix: watch position saved on video end even if disabled
This commit is contained in:
Bnyro 2025-03-24 22:45:48 +01:00 committed by GitHub
commit c28fee67e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,10 +97,10 @@ abstract class AbstractPlayerService : MediaLibraryService(), MediaLibrarySessio
when (playbackState) {
Player.STATE_ENDED -> {
exoPlayer?.let { PlayerHelper.saveWatchPosition(it, videoId) }
saveWatchPosition()
}
Player.STATE_READY -> {
isTransitioning = false
isTransitioning = false
}
}
}