projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbc032c
)
[pbs] fix the least bitrate http url construction
author
remitamine
<remitamine@gmail.com>
Sat, 30 Apr 2016 10:12:11 +0000
(11:12 +0100)
committer
remitamine
<remitamine@gmail.com>
Sat, 30 Apr 2016 10:12:11 +0000
(11:12 +0100)
youtube_dl/extractor/pbs.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pbs.py
b/youtube_dl/extractor/pbs.py
index 38cdb9975f41e559683d65f03157071a298b3040..75c36a621dd873aab5690587796d2eb903e09fee 100644
(file)
--- 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),