diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-29 00:27:44 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-29 22:52:01 +0530 |
commit | f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1 (patch) | |
tree | 812ad33dc62a01467affba1ed45bdee195d426a9 /yt_dlp/utils.py | |
parent | b222c27145a456eef4ed82a8dbbf92cb96fa8041 (diff) | |
download | hypervideo-pre-f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1.tar.lz hypervideo-pre-f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1.tar.xz hypervideo-pre-f2ebc5c7be57ef41d3fd5508e75c5ca26d36a0d1.zip |
Option `--wait-for-video` to wait for scheduled streams
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index ade2bbff1..582cc99fb 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -2600,10 +2600,21 @@ class MaxDownloadsReached(DownloadCancelled): msg = 'Maximum number of downloads reached, stopping due to --max-downloads' -class ThrottledDownload(YoutubeDLError): +class ReExtractInfo(YoutubeDLError): + """ Video info needs to be re-extracted. """ + + def __init__(self, msg, expected=False): + super().__init__(msg) + self.expected = expected + + +class ThrottledDownload(ReExtractInfo): """ Download speed below --throttled-rate. """ msg = 'The download speed is below throttle limit' + def __init__(self, msg): + super().__init__(msg, expected=False) + class UnavailableVideoError(YoutubeDLError): """Unavailable Format exception. |