aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-21 15:50:16 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-21 16:08:25 +0530
commited40877833d401808a29a7998a28c52871cc2e3f (patch)
tree330e70f14c1518ee1b5e5df179a7589189a4e407
parent935f5a4209e97e4a04669f264f0517257e7e2f98 (diff)
downloadhypervideo-pre-ed40877833d401808a29a7998a28c52871cc2e3f.tar.lz
hypervideo-pre-ed40877833d401808a29a7998a28c52871cc2e3f.tar.xz
hypervideo-pre-ed40877833d401808a29a7998a28c52871cc2e3f.zip
Fix 426764371fa52dde8fb9bedad69a3e58e5c391b9 for Py3.6
-rw-r--r--yt_dlp/extractor/iqiyi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/iqiyi.py b/yt_dlp/extractor/iqiyi.py
index 5dc653125..20539f010 100644
--- a/yt_dlp/extractor/iqiyi.py
+++ b/yt_dlp/extractor/iqiyi.py
@@ -532,7 +532,7 @@ class IqIE(InfoExtractor):
webpack_js = self._download_webpage(webpack_js_url, video_id, note='Downloading webpack JS', errnote='Unable to download webpack JS')
webpack_map1, webpack_map2 = [self._parse_json(js_map, video_id, transform_source=js_to_json) for js_map in self._search_regex(
r'\(({[^}]*})\[\w+\][^\)]*\)\s*\+\s*["\']\.["\']\s*\+\s*({[^}]*})\[\w+\]\+["\']\.js', webpack_js, 'JS locations', group=(1, 2))]
- for module_index in reversed(webpack_map2.keys()):
+ for module_index in reversed(list(webpack_map2.keys())):
module_js = self._download_webpage(
f'https://stc.iqiyipic.com/_next/static/chunks/{webpack_map1.get(module_index, module_index)}.{webpack_map2[module_index]}.js',
video_id, note=f'Downloading #{module_index} module JS', errnote='Unable to download module JS', fatal=False) or ''