]> jfr.im git - yt-dlp.git/commitdiff
Fix 426764371fa52dde8fb9bedad69a3e58e5c391b9 for Py3.6
authorpukkandan <redacted>
Fri, 21 Jan 2022 10:20:16 +0000 (15:50 +0530)
committerpukkandan <redacted>
Fri, 21 Jan 2022 10:38:25 +0000 (16:08 +0530)
yt_dlp/extractor/iqiyi.py

index 5dc653125470b5bd9d1e3be4048755abcbb39caf..20539f0100dd818cee958f73d7aba7832f01ad19 100644 (file)
@@ -532,7 +532,7 @@ def _extract_vms_player_js(self, webpage, video_id):
         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 ''