Browse Source

[pbs] fix the least bitrate http url construction

totalwebcasting
remitamine 9 years ago
parent
commit
350d7963db
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/pbs.py

+ 2
- 0
youtube_dl/extractor/pbs.py View 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),


Loading…
Cancel
Save