mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 14:50:47 +00:00
Throw an error if no video formats are found
This commit is contained in:
parent
ca3e054750
commit
7e8caf30c0
1 changed files with 3 additions and 0 deletions
|
@ -466,6 +466,9 @@ def _media_rating_search(self, html):
|
|||
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…
Reference in a new issue