diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-12-29 02:19:43 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-12-29 02:19:43 +0700 |
commit | 71febd1c52d6de89ff571d4c212846aaaafb33ac (patch) | |
tree | bcdf7f35dcbf3a2608a9ab28feaddff0c152e84f /youtube_dl | |
parent | f1bc56c99bac05dccb01c1b68ef778eb08fbcb71 (diff) |
[youtube:tab] Improve URL matching (closes #27559)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 77f128285..0044ed909 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1103,6 +1103,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'skip_download': True, }, }, + { + 'url': 'https://www.youtube.com/watch_popup?v=63RmMXCd_bQ', + 'only_matching': True, + }, ] def __init__(self, *args, **kwargs): @@ -2730,6 +2734,11 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor): 'only_matching': True, }] + @classmethod + def suitable(cls, url): + return False if YoutubeIE.suitable(url) else super( + YoutubeTabIE, cls).suitable(url) + def _extract_channel_id(self, webpage): channel_id = self._html_search_meta( 'channelId', webpage, 'channel id', default=None) |