The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat(bili): 剪贴板嗅探只匹配视频链接
XiaoYouChR2722ed0a0e67
diff --git a/features/bili_pack/pack.py b/features/bili_pack/pack.pyindex 17e81e88..ddb8ed30 100644--- a/features/bili_pack/pack.py+++ b/features/bili_pack/pack.py@@ -23,6 +23,13 @@ class BilibiliParser(TaskParser):hostname = (urlparse(options.url).hostname or "").lower()return hostname == "bilibili.com" or hostname.endswith(".bilibili.com")+ def matchPassive(self, options: TaskOptions) -> bool:+ parsed = urlparse(options.url)+ hostname = (parsed.hostname or "").lower()+ if hostname != "bilibili.com" and not hostname.endswith(".bilibili.com"):+ return False+ return bool(re.match(r"/video/(BV[a-zA-Z0-9]+|av\d+)", parsed.path))+async def parse(self, options: TaskOptions) -> Task:url = options.urlsubworkerCount = options.subworkerCount