1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[youtube:live] Extend _VALID_URL (Closes #10839)

This commit is contained in:
Sergey M․ 2016-10-04 02:10:23 +07:00
parent 215ff6e0f3
commit c1b2a0858c
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -2152,7 +2152,7 @@ class YoutubeUserIE(YoutubeChannelIE):
class YoutubeLiveIE(YoutubeBaseInfoExtractor): class YoutubeLiveIE(YoutubeBaseInfoExtractor):
IE_DESC = 'YouTube.com live streams' 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' IE_NAME = 'youtube:live'
_TESTS = [{ _TESTS = [{
@ -2178,6 +2178,9 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):
}, { }, {
'url': 'https://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live', 'url': 'https://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://www.youtube.com/c/CommanderVideoHq/live',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):