]> jfr.im git - yt-dlp.git/commitdiff
[extractor/youtube] Revert default formats to `https`
authorpukkandan <redacted>
Tue, 11 Apr 2023 10:41:15 +0000 (16:11 +0530)
committerpukkandan <redacted>
Tue, 11 Apr 2023 16:13:31 +0000 (21:43 +0530)
yt_dlp/extractor/youtube.py

index 6dc36f9b998db35131d1e8daf5f1ed84d23a3134..d6a55e9532909066685f67c361084713b8778c88 100644 (file)
@@ -3789,15 +3789,13 @@ def build_fragments(f):
             if single_stream and dct.get('ext'):
                 dct['container'] = dct['ext'] + '_dash'
 
-            if dct['filesize']:
+            if all_formats and dct['filesize']:
                 yield {
                     **dct,
                     'format_id': f'{dct["format_id"]}-dashy' if all_formats else dct['format_id'],
                     'protocol': 'http_dash_segments',
                     'fragments': build_fragments(dct),
                 }
-                if not all_formats:
-                    continue
             dct['downloader_options'] = {'http_chunk_size': CHUNK_SIZE}
             yield dct