made players use <= for better results

This commit is contained in:
cranci1 2025-06-25 10:45:38 +02:00
parent 9b29b40ff3
commit b64f44c341
2 changed files with 2 additions and 2 deletions

View file

@ -1646,7 +1646,7 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
let remainingTimePercentage = UserDefaults.standard.object(forKey: "remainingTimePercentage") != nil ? UserDefaults.standard.double(forKey: "remainingTimePercentage") : 90.0
let threshold = (100.0 - remainingTimePercentage) / 100.0
if remainingPercentage < threshold {
if remainingPercentage <= threshold {
if self.aniListID != 0 && !self.aniListUpdatedSuccessfully && !self.aniListUpdateImpossible {
self.tryAniListUpdate()
}

View file

@ -323,7 +323,7 @@ class VideoPlayerViewController: UIViewController {
let remainingTimePercentage = UserDefaults.standard.object(forKey: "remainingTimePercentage") != nil ? UserDefaults.standard.double(forKey: "remainingTimePercentage") : 90.0
let threshold = (100.0 - remainingTimePercentage) / 100.0
if remainingPercentage < threshold {
if remainingPercentage <= threshold {
if self.aniListID != 0 && !self.aniListUpdateSent {
self.sendAniListUpdate()
}