mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 18:34:41 +01:00
[youtube:live] Relax _VALID_URL (closes #11164)
This commit is contained in:
parent
315cb86a95
commit
073d5bf583
@ -2175,7 +2175,7 @@ def _build_template_url(self, url, channel_id):
|
|||||||
|
|
||||||
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|c)/(?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 = [{
|
||||||
@ -2204,6 +2204,9 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):
|
|||||||
}, {
|
}, {
|
||||||
'url': 'https://www.youtube.com/c/CommanderVideoHq/live',
|
'url': 'https://www.youtube.com/c/CommanderVideoHq/live',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.youtube.com/TheYoungTurks/live',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user