From c3f3a40002be50471652fcd8bed502505c88443e Mon Sep 17 00:00:00 2001 From: Johannes Wong Date: Mon, 15 Jan 2024 16:11:49 -0800 Subject: [PATCH] Fixing iqiyi filename parsing to fix the index out of range error --- downloader/tools/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader/tools/utils.py b/downloader/tools/utils.py index 5c62079..6690f1b 100644 --- a/downloader/tools/utils.py +++ b/downloader/tools/utils.py @@ -207,7 +207,7 @@ def formatTime(value): return '%2dmin%02ds' % (value // 60, value % 60) def filterHlsUrls(content, url = None): - urls = re.findall(r'[^#"\s]+\.(?:ts|mp4)[^"\s]*', content, re.MULTILINE) + urls = re.findall(r'[^#"\s]+\.(?:ts|265ts|mp4)[^"\s]*', content, re.MULTILINE) if len(urls) > 0 and not urls[0].startswith('http'): basePath = getBasePath(url)