projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
215ff6e
)
[youtube:live] Extend _VALID_URL (Closes #10839)
author
Sergey M․
<dstftw@gmail.com>
Mon, 3 Oct 2016 19:10:23 +0000
(
02:10
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 3 Oct 2016 19:10:23 +0000
(
02:10
+0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index f86823112297d40aeb9e847d182f905bcf7afb76..cb266eab65d0b9d71527ebb05fdeb74bcb72257b 100644
(file)
--- 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'
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 = [{
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/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live',
'only_matching': True,
+ }, {
+ 'url': 'https://www.youtube.com/c/CommanderVideoHq/live',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):