]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[pbs] fix the least bitrate http url construction
authorremitamine <remitamine@gmail.com>
Sat, 30 Apr 2016 10:12:11 +0000 (11:12 +0100)
committerremitamine <remitamine@gmail.com>
Sat, 30 Apr 2016 10:12:11 +0000 (11:12 +0100)
youtube_dl/extractor/pbs.py

index 38cdb9975f41e559683d65f03157071a298b3040..75c36a621dd873aab5690587796d2eb903e09fee 100644 (file)
@@ -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),