diff options
author | Remita Amine <remitamine@gmail.com> | 2016-06-30 14:11:55 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-06-30 14:11:55 +0100 |
commit | 7dbeee7e229a357cfc8acf0a908b10f3f326cd96 (patch) | |
tree | 68e738c3d874a2fac3f7dc10a2629e868a41dba6 | |
parent | 93ad6c6bfaae8f1ce87a832ece92fa099f0e2095 (diff) |
[generic] make twitter:player extraction non fatal
-rw-r--r-- | youtube_dl/extractor/generic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index c2a7f9202..9315b9e21 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -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) |