aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2020-12-26 19:59:57 +0700
committerSergey M․ <[email protected]>2020-12-26 19:59:57 +0700
commitaf1312bfc38b8dd3ba9381e9d7a58206870651a5 (patch)
treeb7c64df26a4199ea3e46e6c49684617fc3c61546 /youtube_dl/extractor/youtube.py
parent4c7d7215cd069bd15239d5a43ecb764e60a49ce7 (diff)
downloadyoutube-dl-af1312bfc38b8dd3ba9381e9d7a58206870651a5.tar.gz
youtube-dl-af1312bfc38b8dd3ba9381e9d7a58206870651a5.zip
[youtube:tab] Extend _VALID_URL (closes #27501)
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py26
1 files changed, 18 insertions, 8 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 19df6b412..289d9bab1 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -2442,7 +2442,8 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):
)/
(?:
(?:channel|c|user|feed)/|
- (?:playlist|watch)\?.*?\blist=
+ (?:playlist|watch)\?.*?\blist=|
+ (?!(?:watch|embed|v|e)\b)
)
(?P<id>[^/?\#&]+)
'''
@@ -2711,13 +2712,22 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):
# inline playlist with not always working continuations
'url': 'https://www.youtube.com/watch?v=UC6u0Tct-Fo&list=PL36D642111D65BE7C',
'only_matching': True,
- }
- # TODO
- # {
- # 'url': 'https://www.youtube.com/TheYoungTurks/live',
- # 'only_matching': True,
- # }
- ]
+ }, {
+ 'url': 'https://www.youtube.com/course?list=ECUl4u3cNGP61MdtwGTqZA0MreSaDybji8',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.youtube.com/course',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.youtube.com/zsecurity',
+ 'only_matching': True,
+ }, {
+ 'url': 'http://www.youtube.com/NASAgovVideo/videos',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.youtube.com/TheYoungTurks/live',
+ 'only_matching': True,
+ }]
def _extract_channel_id(self, webpage):
channel_id = self._html_search_meta(