Use self._get_formats

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
sepro 2024-05-01 23:26:56 +02:00 committed by GitHub
parent ad4fd27bf1
commit 1b57e3bbb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2167,7 +2167,7 @@ def can_merge():
return merger.available and merger.can_merge()
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)({
'formats': formats,
'has_merged_format': any('none' not in (f.get('acodec'), f.get('vcodec')) for f in formats),