Skip to content

The only downloader you need. 下载器的集大成者。

fix(yt-dlp): 播放列表 URL 单视频下载后显示文件不存在

XiaoYouChR782d48ae9202
diff --git a/features/yt_dlp_pack/task.py b/features/yt_dlp_pack/task.py
index 68c4ae27..81084c2e 100644
--- a/features/yt_dlp_pack/task.py
+++ b/features/yt_dlp_pack/task.py
@@ -229,7 +229,7 @@ class YouTubeExtractStep(TaskStep):
from app.platform.filesystem import toSafeFilename
safeName = toSafeFilename(title)
if safeName:
- if self.fileIndex == 0 and not self.task.isPlaylist:
+ if self.fileIndex == 0 and self.task.files is None:
ext = "m4a" if not videoFmt else "mp4"
self.task.setName(f"{safeName}.{ext}")
for step in self.task.steps: