mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 23:02:34 +00:00
parent
3f7965105d
commit
8cb7fc44db
1 changed files with 4 additions and 4 deletions
|
@ -2339,13 +2339,13 @@ class YoutubeDL:
|
||||||
return new_dict
|
return new_dict
|
||||||
|
|
||||||
def _check_formats(formats):
|
def _check_formats(formats):
|
||||||
if (self.params.get('check_formats') is not None
|
if self.params.get('check_formats') == 'selected':
|
||||||
|
yield from self._check_formats(formats)
|
||||||
|
return
|
||||||
|
elif (self.params.get('check_formats') is not None
|
||||||
or self.params.get('allow_unplayable_formats')):
|
or self.params.get('allow_unplayable_formats')):
|
||||||
yield from formats
|
yield from formats
|
||||||
return
|
return
|
||||||
elif self.params.get('check_formats') == 'selected':
|
|
||||||
yield from self._check_formats(formats)
|
|
||||||
return
|
|
||||||
|
|
||||||
for f in formats:
|
for f in formats:
|
||||||
if f.get('has_drm'):
|
if f.get('has_drm'):
|
||||||
|
|
Loading…
Reference in a new issue