Actually don't check the same format twice

pull/9805/head
sepro 6 months ago
parent 9e305e7d03
commit 80b7cd374d

@ -2138,6 +2138,7 @@ class YoutubeDL:
for f in formats: for f in formats:
if f.get('__working'): if f.get('__working'):
yield f yield f
continue
self.to_screen('[info] Testing format %s' % f['format_id']) self.to_screen('[info] Testing format %s' % f['format_id'])
path = self.get_output_path('temp') path = self.get_output_path('temp')
if not self._ensure_dir_exists(f'{path}/'): if not self._ensure_dir_exists(f'{path}/'):

Loading…
Cancel
Save