mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 08:29:57 +01:00
[generic] make twitter:player extraction non fatal
This commit is contained in:
parent
93ad6c6bfa
commit
7dbeee7e22
@ -2098,7 +2098,7 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
||||
}
|
||||
|
||||
# https://dev.twitter.com/cards/types/player#On_twitter.com_via_desktop_browser
|
||||
embed_url = self._twitter_search_player(webpage)
|
||||
embed_url = self._html_search_meta('twitter:player', webpage, default=None)
|
||||
if embed_url:
|
||||
return self.url_result(embed_url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user