mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 02:25:11 +00:00
[pbs] fix the least bitrate http url construction
This commit is contained in:
parent
cbc032c8b7
commit
350d7963db
1 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,8 @@ def extract_redirect_urls(info):
|
||||||
bitrate = self._search_regex(r'(\d+k)', m3u8_format['url'], 'bitrate', default=None)
|
bitrate = self._search_regex(r'(\d+k)', m3u8_format['url'], 'bitrate', default=None)
|
||||||
if not bitrate:
|
if not bitrate:
|
||||||
continue
|
continue
|
||||||
|
if bitrate == '192k':
|
||||||
|
bitrate = 'baseline'
|
||||||
f = m3u8_format.copy()
|
f = m3u8_format.copy()
|
||||||
f.update({
|
f.update({
|
||||||
'url': re.sub(r'\d+k|baseline', bitrate, http_url),
|
'url': re.sub(r'\d+k|baseline', bitrate, http_url),
|
||||||
|
|
Loading…
Reference in a new issue