From b64f44c341a6d2a6681799b6886b215e7cf07708 Mon Sep 17 00:00:00 2001 From: cranci1 <100066266+cranci1@users.noreply.github.com> Date: Wed, 25 Jun 2025 10:45:38 +0200 Subject: [PATCH] made players use <= for better results --- Sora/MediaUtils/CustomPlayer/CustomPlayer.swift | 2 +- Sora/MediaUtils/NormalPlayer/VideoPlayer.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sora/MediaUtils/CustomPlayer/CustomPlayer.swift b/Sora/MediaUtils/CustomPlayer/CustomPlayer.swift index d64eab4..ad80f74 100644 --- a/Sora/MediaUtils/CustomPlayer/CustomPlayer.swift +++ b/Sora/MediaUtils/CustomPlayer/CustomPlayer.swift @@ -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() } diff --git a/Sora/MediaUtils/NormalPlayer/VideoPlayer.swift b/Sora/MediaUtils/NormalPlayer/VideoPlayer.swift index 6ffabd0..d6241c6 100644 --- a/Sora/MediaUtils/NormalPlayer/VideoPlayer.swift +++ b/Sora/MediaUtils/NormalPlayer/VideoPlayer.swift @@ -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() }