]> jfr.im git - yt-dlp.git/commitdiff
Fix `--throttled-rate` when using `--load-info-json`
authorpukkandan <redacted>
Fri, 25 Jun 2021 16:37:04 +0000 (22:07 +0530)
committerpukkandan <redacted>
Fri, 25 Jun 2021 17:27:17 +0000 (22:57 +0530)
yt_dlp/YoutubeDL.py

index c67ca8b3031e77aa1e6981355c299a77b8bb864a..41cf4265df4245c8bdbd38e39b2440092e3d805a 100644 (file)
@@ -2803,7 +2803,7 @@ def download_with_info_file(self, info_filename):
             info = self.filter_requested_info(json.loads('\n'.join(f)), self.params.get('clean_infojson', True))
         try:
             self.process_ie_result(info, download=True)
-        except (DownloadError, EntryNotInPlaylist):
+        except (DownloadError, EntryNotInPlaylist, ThrottledDownload):
             webpage_url = info.get('webpage_url')
             if webpage_url is not None:
                 self.report_warning('The info failed to download, trying with "%s"' % webpage_url)