A feature-rich command-line audio/video downloader
[youtube:live] Extend _VALID_URL (Closes #10839)
Sergey M․c1b2a0858caf
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex f868231122..cb266eab65 100644--- a/youtube_dl/extractor/youtube.py+++ b/youtube_dl/extractor/youtube.py@@ -2152,7 +2152,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)/(?P<id>[^/]+))/live'+ _VALID_URL = r'(?P<base_url>https?://(?:\w+\.)?youtube\.com/(?:user|channel|c)/(?P<id>[^/]+))/live'IE_NAME = 'youtube:live'_TESTS = [{@@ -2178,6 +2178,9 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):}, {'url': 'https://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live','only_matching': True,+ }, {+ 'url': 'https://www.youtube.com/c/CommanderVideoHq/live',+ 'only_matching': True,}]def _real_extract(self, url):