mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +00:00
made players use <= for better results
This commit is contained in:
parent
9b29b40ff3
commit
b64f44c341
2 changed files with 2 additions and 2 deletions
|
|
@ -1646,7 +1646,7 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
|
||||||
let remainingTimePercentage = UserDefaults.standard.object(forKey: "remainingTimePercentage") != nil ? UserDefaults.standard.double(forKey: "remainingTimePercentage") : 90.0
|
let remainingTimePercentage = UserDefaults.standard.object(forKey: "remainingTimePercentage") != nil ? UserDefaults.standard.double(forKey: "remainingTimePercentage") : 90.0
|
||||||
let threshold = (100.0 - remainingTimePercentage) / 100.0
|
let threshold = (100.0 - remainingTimePercentage) / 100.0
|
||||||
|
|
||||||
if remainingPercentage < threshold {
|
if remainingPercentage <= threshold {
|
||||||
if self.aniListID != 0 && !self.aniListUpdatedSuccessfully && !self.aniListUpdateImpossible {
|
if self.aniListID != 0 && !self.aniListUpdatedSuccessfully && !self.aniListUpdateImpossible {
|
||||||
self.tryAniListUpdate()
|
self.tryAniListUpdate()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -323,7 +323,7 @@ class VideoPlayerViewController: UIViewController {
|
||||||
let remainingTimePercentage = UserDefaults.standard.object(forKey: "remainingTimePercentage") != nil ? UserDefaults.standard.double(forKey: "remainingTimePercentage") : 90.0
|
let remainingTimePercentage = UserDefaults.standard.object(forKey: "remainingTimePercentage") != nil ? UserDefaults.standard.double(forKey: "remainingTimePercentage") : 90.0
|
||||||
let threshold = (100.0 - remainingTimePercentage) / 100.0
|
let threshold = (100.0 - remainingTimePercentage) / 100.0
|
||||||
|
|
||||||
if remainingPercentage < threshold {
|
if remainingPercentage <= threshold {
|
||||||
if self.aniListID != 0 && !self.aniListUpdateSent {
|
if self.aniListID != 0 && !self.aniListUpdateSent {
|
||||||
self.sendAniListUpdate()
|
self.sendAniListUpdate()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue