Update ContinueWatchingManager.swift
Some checks are pending
Build and Release IPA / Build IPA (push) Waiting to run

This commit is contained in:
Francesco 2025-03-28 14:36:47 +01:00
parent 2eb07aebf1
commit fe19ffda1f

View file

@ -14,6 +14,11 @@ class ContinueWatchingManager {
private init() {}
func save(item: ContinueWatchingItem) {
if item.progress >= 0.9 {
remove(item: item)
return
}
var items = fetchItems()
if let index = items.firstIndex(where: { $0.streamUrl == item.streamUrl && $0.episodeNumber == item.episodeNumber }) {
items[index] = item