[generic] make twitter:player extraction non fatal
authorRemita Amine <remitamine@gmail.com>
Thu, 30 Jun 2016 13:11:55 +0000 (14:11 +0100)
committerRemita Amine <remitamine@gmail.com>
Thu, 30 Jun 2016 13:11:55 +0000 (14:11 +0100)
youtube_dl/extractor/generic.py

index c2a7f92025c88e69f405817ebb24836832767930..9315b9e21ff11ccaf6717638502ba0b303e966ac 100644 (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)