Skip to content

Commit

Permalink
use urllib.parse.urlencode
Browse files Browse the repository at this point in the history
  • Loading branch information
bashonly authored Jan 26, 2025
1 parent 7dafa2d commit 0723773
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yt_dlp/extractor/naver.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def extract_formats(streams, stream_type, query={}):
'abr': int_or_none(bitrate.get('audio')),
'filesize': int_or_none(stream.get('size')),
'protocol': 'm3u8_native' if stream_type == 'HLS' else None,
'extra_param_to_segment_url': ('&'.join('{}={}'.format(*p) for p in query.items())
if stream_type == 'HLS' else None),
'extra_param_to_segment_url': urllib.parse.urlencode(query, doseq=True) if stream_type == 'HLS' else None,
})

extract_formats(get_list('video'), 'H264')
Expand Down

0 comments on commit 0723773

Please sign in to comment.