diff options
author | Sergey M․ <dstftw@gmail.com> | 2021-04-21 03:56:04 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2021-04-21 03:56:04 +0700 |
commit | 32290307a45260885b2210aa3c2a57e64abf8c34 (patch) | |
tree | fce91aa9659fcbe6b79e1d1966d4c8ef9b19001a /youtube_dl | |
parent | dab83a25972e0dbcc69583bf78d2a992f581563d (diff) |
[youtube] Fix lazy extractors (closes #28780)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 75751d5a6..c16dc7ab8 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1219,6 +1219,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor): @classmethod def suitable(cls, url): + # Hack for lazy extractors until more generic solution is implemented + # (see #28780) + from .youtube import parse_qs qs = parse_qs(url) if qs.get('list', [None])[0]: return False @@ -2910,6 +2913,9 @@ class YoutubePlaylistIE(InfoExtractor): def suitable(cls, url): if YoutubeTabIE.suitable(url): return False + # Hack for lazy extractors until more generic solution is implemented + # (see #28780) + from .youtube import parse_qs qs = parse_qs(url) if qs.get('v', [None])[0]: return False |