diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-26 09:23:10 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-07-26 09:33:19 +0530 |
commit | 693f060040967e0ce5d9769d64b0cdd059c054d2 (patch) | |
tree | b9d0c6a357649de09c4ed025b22b44a8df2303d3 /yt_dlp/utils.py | |
parent | 3bec830a597e8c7ab0d9f4e1258dc4a1be0b1de4 (diff) | |
download | hypervideo-pre-693f060040967e0ce5d9769d64b0cdd059c054d2.tar.lz hypervideo-pre-693f060040967e0ce5d9769d64b0cdd059c054d2.tar.xz hypervideo-pre-693f060040967e0ce5d9769d64b0cdd059c054d2.zip |
[youtube,twitch] Allow waiting for channels to become live
Closes #2597
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index f522c2102..ca39e96ac 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -1072,6 +1072,14 @@ class GeoRestrictedError(ExtractorError): self.countries = countries +class UserNotLive(ExtractorError): + """Error when a channel/user is not live""" + + def __init__(self, msg=None, **kwargs): + kwargs['expected'] = True + super().__init__(msg or 'The channel is not currently live', **kwargs) + + class DownloadError(YoutubeDLError): """Download Error exception. |