1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-06 14:58:21 -04:00

Option --wait-for-video to wait for scheduled streams

This commit is contained in:
pukkandan
2021-11-29 00:27:44 +05:30
parent b222c27145
commit f2ebc5c7be
5 changed files with 91 additions and 9 deletions

View File

@@ -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.