1
0
Fork 0

[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
commit 171a31dbe8
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
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',