Restart finished local media from the beginning

This commit is contained in:
hypnotoad08
2026-08-02 20:15:20 -04:00
parent 26c6b9149b
commit f06168fdc2
@@ -111,7 +111,7 @@ class LocalLibraryItem(
// Get current progress for local media
val mediaProgressId = if (localEpisodeId.isNullOrEmpty()) id else "$id-$localEpisodeId"
val mediaProgress = DeviceManager.dbManager.getLocalMediaProgress(mediaProgressId)
val currentTime = mediaProgress?.currentTime ?: 0.0
val currentTime = if (mediaProgress?.isFinished == true) 0.0 else mediaProgress?.currentTime ?: 0.0
val mediaMetadata = media.metadata