From: remitamine Date: Sat, 30 Apr 2016 10:12:11 +0000 (+0100) Subject: [pbs] fix the least bitrate http url construction X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=350d7963db671884acd43f56f41bd499efd8e74a;p=youtube-dl.git [pbs] fix the least bitrate http url construction --- diff --git a/youtube_dl/extractor/pbs.py b/youtube_dl/extractor/pbs.py index 38cdb9975..75c36a621 100644 --- a/youtube_dl/extractor/pbs.py +++ b/youtube_dl/extractor/pbs.py @@ -514,6 +514,8 @@ class PBSIE(InfoExtractor): bitrate = self._search_regex(r'(\d+k)', m3u8_format['url'], 'bitrate', default=None) if not bitrate: continue + if bitrate == '192k': + bitrate = 'baseline' f = m3u8_format.copy() f.update({ 'url': re.sub(r'\d+k|baseline', bitrate, http_url),