1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 14:45:14 +00:00

[extractor] Add a way to distinguish IEs that returns only videos

This commit is contained in:
pukkandan
2022-11-13 10:56:04 +05:30
parent 83cc7b8aae
commit 171a31dbe8
2 changed files with 20 additions and 0 deletions

View File

@@ -1050,6 +1050,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
<a\s[^>]*\bhref="(?P<url>https://www\.youtube\.com/watch\?v=[0-9A-Za-z_-]{11})"
\s[^>]*\bclass="[^"]*\blazy-load-youtube''',
]
_RETURN_TYPE = 'video' # While there are "multifeed" test cases, they don't seem to actually exist anymore
_PLAYER_INFO_RE = (
r'/s/player/(?P<id>[a-zA-Z0-9_-]{8,})/player',