kopia lustrzana https://github.com/ytdl-org/youtube-dl
Throw an error if no video formats are found
rodzic
ca3e054750
commit
7e8caf30c0
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue