This commit is contained in:
Carlos Correia
2026-07-10 23:53:33 +01:00
parent 30068d1501
commit 824fdb8089
12 changed files with 771 additions and 578 deletions

View File

@@ -27,10 +27,4 @@ class WatchedVideosPrefs {
final ids = prefs.getStringList(_key(scopeId)) ?? const [];
return ids.length;
}
static Future<Set<int>> getWatchedIds(String scopeId) async {
final prefs = await SharedPreferences.getInstance();
final ids = prefs.getStringList(_key(scopeId)) ?? const [];
return ids.map((e) => int.tryParse(e) ?? -1).where((e) => e >= 0).toSet();
}
}