Skip to content

Commit

Permalink
[extractor/youtube] Revert default formats to https
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Apr 11, 2023
1 parent 79c77e8 commit c6786ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions yt_dlp/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6786ff

Please sign in to comment.