Browse Source

Throw an error if no video formats are found

master
Philipp Hagemeister 11 years ago
parent
commit
7e8caf30c0
1 changed files with 3 additions and 0 deletions
  1. 3
      youtube_dl/extractor/common.py

3
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 workaround
from ..utils import determine_ext

Loading…
Cancel
Save