The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix: 修复旧数据迁移问题
XiaoYouChR1292c4005db9
diff --git a/app/bases/models.py b/app/bases/models.pyindex a4149bec..5be85885 100644--- a/app/bases/models.py+++ b/app/bases/models.py@@ -152,6 +152,8 @@ class TaskStage:obj["status"] = TaskStatus[obj["status"]]if "path" in obj and isinstance(obj["path"], str):obj["path"] = Path(obj["path"])+ if "resolvePath" in obj and "outputFile" not in obj:+ obj["outputFile"] = obj.pop("resolvePath")return stageCls(**_filterDataclassKwargs(stageCls, obj))diff --git a/features/m3u8_pack/config.py b/features/m3u8_pack/config.pyindex 537b09d3..1ecdb601 100644--- a/features/m3u8_pack/config.py+++ b/features/m3u8_pack/config.py@@ -55,19 +55,19 @@ def downloaderPath() -> str:async def queryM3U8Runtime() -> dict[str, str]:- downloaderPath = downloaderPath()+ execPath = downloaderPath()ffmpegPath, _ = ffmpegPaths()runtimeInfo = {- "downloaderPath": downloaderPath,+ "downloaderPath": execPath,"version": "","installPath": "","ffmpegPath": ffmpegPath,}- if not downloaderPath:+ if not execPath:return runtimeInfoprocess = await asyncio.create_subprocess_exec(- downloaderPath,+ execPath,"--version",stdin=asyncio.subprocess.DEVNULL,stdout=asyncio.subprocess.PIPE,@@ -80,7 +80,7 @@ async def queryM3U8Runtime() -> dict[str, str]:output = stdout.decode("utf-8", errors="ignore") or stderr.decode("utf-8", errors="ignore")lines = [line.strip() for line in output.splitlines() if line.strip()]runtimeInfo["version"] = lines[0] if lines else ""- runtimeInfo["installPath"] = toPosixPath(Path(downloaderPath).parent)+ runtimeInfo["installPath"] = toPosixPath(Path(execPath).parent)return runtimeInfo