A feature-rich command-line audio/video downloader
[youtube:live] Relax _VALID_URL (closes #11164)
Sergey M․073d5bf583e8
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex 545246bcd7..7ccb875a50 100644--- a/youtube_dl/extractor/youtube.py+++ b/youtube_dl/extractor/youtube.py@@ -2175,7 +2175,7 @@ class YoutubeUserIE(YoutubeChannelIE):class YoutubeLiveIE(YoutubeBaseInfoExtractor):IE_DESC = 'YouTube.com live streams'- _VALID_URL = r'(?P<base_url>https?://(?:\w+\.)?youtube\.com/(?:user|channel|c)/(?P<id>[^/]+))/live'+ _VALID_URL = r'(?P<base_url>https?://(?:\w+\.)?youtube\.com/(?:(?:user|channel|c)/)?(?P<id>[^/]+))/live'IE_NAME = 'youtube:live'_TESTS = [{@@ -2204,6 +2204,9 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):}, {'url': 'https://www.youtube.com/c/CommanderVideoHq/live','only_matching': True,+ }, {+ 'url': 'https://www.youtube.com/TheYoungTurks/live',+ 'only_matching': True,}]def _real_extract(self, url):