1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 22:25:19 +00:00

[youtube,twitch] Allow waiting for channels to become live

Closes #2597
This commit is contained in:
pukkandan
2022-07-26 09:23:10 +05:30
parent 3bec830a59
commit 693f060040
4 changed files with 25 additions and 8 deletions

View File

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