The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
Fixes #407
XiaoYouChRe6127a9e9340
diff --git a/features/bili_pack/pack.py b/features/bili_pack/pack.pyindex 02832a6a..983367f7 100644--- a/features/bili_pack/pack.py+++ b/features/bili_pack/pack.py@@ -51,7 +51,7 @@ def _buildBilibiliHeaders(referer: str) -> dict[str, str]:def _parseVideoIdAndPages(url: str) -> tuple[str, list[int] | None]:parsedUrl = urlparse(url)host = (parsedUrl.hostname or "").lower()- if host != "bilibili.com" or not host.endswith(".bilibili.com"):+ if not (host == "bilibili.com" or host.endswith(".bilibili.com")):raise ValueError("Invalid Bilibili video URL")matchResult = re.match(r"/video/(BV[a-zA-Z0-9]+|av\d+)", parsedUrl.path)