mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 09:23:16 +00:00
Use self._get_formats
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
parent
ad4fd27bf1
commit
1b57e3bbb6
|
@ -2167,7 +2167,7 @@ def can_merge():
|
||||||
return merger.available and merger.can_merge()
|
return merger.available and merger.can_merge()
|
||||||
|
|
||||||
def evaluate_formats(format_spec):
|
def evaluate_formats(format_spec):
|
||||||
formats = info_dict.get('formats') or []
|
formats = self._get_formats(info_dict)
|
||||||
return list(self.build_format_selector(format_spec)({
|
return list(self.build_format_selector(format_spec)({
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'has_merged_format': any('none' not in (f.get('acodec'), f.get('vcodec')) for f in formats),
|
'has_merged_format': any('none' not in (f.get('acodec'), f.get('vcodec')) for f in formats),
|
||||||
|
|
Loading…
Reference in a new issue