projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bdc149
)
[cbc:watch] extract audio codec for audion only formats(fixes #11893)
author
Remita Amine
<remitamine@gmail.com>
Thu, 2 Feb 2017 07:07:06 +0000
(08:07 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Thu, 2 Feb 2017 07:07:28 +0000
(08:07 +0100)
youtube_dl/extractor/cbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cbc.py
b/youtube_dl/extractor/cbc.py
index a291685bfbbcd7e5994487948a422a4c0b0bef1d..cf678e7f843225f00a69546c59ba27a2b9c93c3d 100644
(file)
--- a/
youtube_dl/extractor/cbc.py
+++ b/
youtube_dl/extractor/cbc.py
@@
-296,6
+296,12
@@
class CBCWatchVideoIE(CBCWatchBaseIE):
formats = self._extract_m3u8_formats(re.sub(r'/([^/]+)/[^/?]+\.m3u8', r'/\1/\1.m3u8', m3u8_url), video_id, 'mp4', fatal=False)
if len(formats) < 2:
formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4')
+ for f in formats:
+ format_id = f.get('format_id')
+ if format_id.startswith('AAC'):
+ f['acodec'] = 'aac'
+ elif format_id.startswith('AC3'):
+ f['acodec'] = 'ac-3'
self._sort_formats(formats)
info = {