The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(m3u8): 浏览器插件任务优先使用页面标题作为文件名
XiaoYouChR6c10083dbb9d
diff --git a/features/m3u8_pack/pack.py b/features/m3u8_pack/pack.pyindex ae313ee8..d803e9f3 100644--- a/features/m3u8_pack/pack.py+++ b/features/m3u8_pack/pack.py@@ -109,16 +109,20 @@ class M3U8Parser(TaskParser):extension = "ts" if isLive else m3u8Config.outputFormat.valuestreams = self._parseStreams(body, manifestType)- cd = responseHeaders.get("content-disposition", "")name = ""- if cd:- msg = Message()- msg["Content-Disposition"] = cd- params = msg.get_params(header="Content-Disposition")- paramDict = {k.lower(): v for k, v in params}- name = collapse_rfc2231_value(- paramDict.get("filename") or paramDict.get("filename*") or ""- ).strip("\"' ")+ if isinstance(options, PageTaskOptions) and options.pageTitle:+ name = toSafeFilename(options.pageTitle, fallback="")++ if not name:+ cd = responseHeaders.get("content-disposition", "")+ if cd:+ msg = Message()+ msg["Content-Disposition"] = cd+ params = msg.get_params(header="Content-Disposition")+ paramDict = {k.lower(): v for k, v in params}+ name = collapse_rfc2231_value(+ paramDict.get("filename") or paramDict.get("filename*") or ""+ ).strip("\"' ")if not name:parsedManifest = urlparse(manifestUrl)