diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index 17510910a..8248595e0 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -981,7 +981,8 @@ class PlayerFragment : BaseFragment() { Thread { try { position = DatabaseHolder.db.watchPositionDao().findById(videoId!!).position - if (position!! < streams.duration!! * 0.9) position = null + // position is almost the end of the video => don't seek, start from beginning + if (position!! > streams.duration!! * 1000 * 0.9) position = null } catch (e: Exception) { } }.await()