1
0
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-19 07:57:18 +00:00

[generic] make twitter:player extraction non fatal

This commit is contained in:
Remita Amine 2016-06-30 14:11:55 +01:00
parent 93ad6c6bfa
commit 7dbeee7e22

View File

@ -2098,7 +2098,7 @@ class GenericIE(InfoExtractor):
}
# 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)