]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/utils.py
[youtube,twitch] Allow waiting for channels to become live
[yt-dlp.git] / yt_dlp / utils.py
index f522c2102c3d42fa09cab849ba7d8ca411d0a97f..ca39e96ac9e329188c428ad4ec43166251547c5c 100644 (file)
@@ -1072,6 +1072,14 @@ def __init__(self, msg, countries=None, **kwargs):
         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.