]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/extractor/common.py
Merge pull request #2252 from matthewfranglen/master
[youtube-dl] / youtube_dl / extractor / common.py
index db1ca9edb446568479d3770604b42ae66c2ddd75..70ba9eaba3f1e4cc32207867ba3dc6a4ed0d2b10 100644 (file)
@@ -465,7 +465,14 @@ class InfoExtractor(object):
         }
         return RATING_TABLE.get(rating.lower(), None)
 
+    def _twitter_search_player(self, html):
+        return self._html_search_meta('twitter:player', html,
+            'twitter card player')
+
     def _sort_formats(self, formats):
+        if not formats:
+            raise ExtractorError(u'No video formats found')
+
         def _formats_key(f):
             # TODO remove the following workaround
             from ..utils import determine_ext