优化视频下载

This commit is contained in:
mtvpls
2026-06-04 14:09:12 +08:00
parent caa9cd82c0
commit 63fb51ce99
5 changed files with 520 additions and 97 deletions
+2
View File
@@ -154,6 +154,7 @@ export function DownloadProvider({ children }: { children: React.ReactNode }) {
rangeDownload: task.rangeDownload,
m3u8Content: task.m3u8Content,
createdAt: task.createdAt || Date.now(),
segmentLogs: task.segmentLogs,
}));
await downloadDB.saveActiveTasks(tasksToSave);
@@ -255,6 +256,7 @@ export function DownloadProvider({ children }: { children: React.ReactNode }) {
task.errorNum = savedTask.errorNum;
task.downloadMode = savedTask.downloadMode;
task.rangeDownload = savedTask.rangeDownload;
task.segmentLogs = savedTask.segmentLogs || [];
if (dirHandle) {
task.filesystemDirHandle = dirHandle;