A feature-rich command-line audio/video downloader
Throw an error if no video formats are found
Philipp Hagemeister7e8caf30c055
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex db1ca9edb4..f7478d4598 100644--- a/youtube_dl/extractor/common.py+++ b/youtube_dl/extractor/common.py@@ -466,6 +466,9 @@ class InfoExtractor(object):return RATING_TABLE.get(rating.lower(), None)def _sort_formats(self, formats):+ if not formats:+ raise ExtractorError(u'No video formats found')+def _formats_key(f):# TODO remove the following workaroundfrom ..utils import determine_ext