opt download (#1755)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-11-27 21:00:13 +08:00
committed by GitHub
parent ded78e534f
commit 9ccaa3072b
25 changed files with 1161 additions and 410 deletions

View File

@@ -1885,9 +1885,10 @@ class VideoDetailController extends GetxController
if (!context.mounted) {
return;
}
final Set<int?> cidSet = downloadService.downloadList
.map((e) => e.cid)
.toSet();
final Set<int?> cidSet =
(downloadService.downloadList + downloadService.waitDownloadQueue)
.map((e) => e.cid)
.toSet();
final index = episodes!.indexWhere(
(e) => e.cid == (seasonCid ?? cid.value),
);