projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
315cb86
)
[youtube:live] Relax _VALID_URL (closes #11164)
author
Sergey M․
<dstftw@gmail.com>
Wed, 16 Nov 2016 16:14:06 +0000
(23:14 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 16 Nov 2016 16:15:19 +0000
(23:15 +0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 545246bcd74a8b94878d2b631d23029539e0438b..7ccb875a5035dfd192e5362f1334e5b830f247e3 100644
(file)
--- 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'
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 = [{
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/c/CommanderVideoHq/live',
'only_matching': True,
+ }, {
+ 'url': 'https://www.youtube.com/TheYoungTurks/live',
+ 'only_matching': True,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):