aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/youtube.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-22 14:32:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-22 16:54:07 +0530
commit1bdae7d312ceac9ecef8a9a215d958811a9fb6be (patch)
tree9a5a8fbbf19bd953c3c95d5d9ae576ac5c4c3f82 /yt_dlp/extractor/youtube.py
parenta471f21da628b9526c3f177c59ca2fc076e8b68b (diff)
downloadhypervideo-pre-1bdae7d312ceac9ecef8a9a215d958811a9fb6be.tar.lz
hypervideo-pre-1bdae7d312ceac9ecef8a9a215d958811a9fb6be.tar.xz
hypervideo-pre-1bdae7d312ceac9ecef8a9a215d958811a9fb6be.zip
Update to ytdl-commit-7e8b3f9
[youtube] Remove unused code https://github.com/ytdl-org/youtube-dl/commit/7e8b3f9439ebefb3a3a4e5da9c0bd2b595976438
Diffstat (limited to 'yt_dlp/extractor/youtube.py')
-rw-r--r--yt_dlp/extractor/youtube.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py
index eaa2db1da..edc985d19 100644
--- a/yt_dlp/extractor/youtube.py
+++ b/yt_dlp/extractor/youtube.py
@@ -77,11 +77,6 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
_PLAYLIST_ID_RE = r'(?:(?:PL|LL|EC|UU|FL|RD|UL|TL|PU|OLAK5uy_)[0-9A-Za-z-_]{10,}|RDMM|WL|LL|LM)'
- def _ids_to_results(self, ids):
- return [
- self.url_result(vid_id, 'Youtube', video_id=vid_id)
- for vid_id in ids]
-
def _login(self):
"""
Attempt to log in to YouTube.
@@ -1313,6 +1308,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
@@ -3595,6 +3593,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