]> jfr.im git - yt-dlp.git/commitdiff
[extractor/iq] Increase phantomjs timeout
authorpukkandan <redacted>
Fri, 14 Oct 2022 01:16:24 +0000 (06:46 +0530)
committerpukkandan <redacted>
Fri, 14 Oct 2022 02:11:06 +0000 (07:41 +0530)
Closes #5161

yt_dlp/extractor/iqiyi.py

index 6a43846c17e21d688d1581d9747e3b01fe2e0fba..bb77647f8c874541cc9d435748d11bfccae84a00 100644 (file)
@@ -588,8 +588,9 @@ def _real_extract(self, url):
             ut_list = ['0']
 
         # bid 0 as an initial format checker
-        dash_paths = self._parse_json(PhantomJSwrapper(self).get(
-            url, html='<!DOCTYPE html>', video_id=video_id, note2='Executing signature code', jscode=self._DASH_JS % {
+        dash_paths = self._parse_json(PhantomJSwrapper(self, timeout=120_000).get(
+            url, note2='Executing signature code (this may take a couple minutes)',
+            html='<!DOCTYPE html>', video_id=video_id, jscode=self._DASH_JS % {
                 'tvid': video_info['tvId'],
                 'vid': video_info['vid'],
                 'src': traverse_obj(next_props, ('initialProps', 'pageProps', 'ptid'),