From 16f36a6fc92d6ab89293e45de65475455fbc1b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= Date: Fri, 18 Oct 2013 17:50:55 -0300 Subject: [PATCH 1/2] extractor: youtube: Set extension of AAC audio formats to m4a. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This, in particular, eases downloading both audio and videos in DASH formats before muxing them, which alleviates the problem that I exposed on issue Furthermore, one may argue that this is, indeed, the case for correctness's sake. Signed-off-by: Rogério Brito --- youtube_dl/extractor/youtube.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index fb7c42830..cfc142f26 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -237,9 +237,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): '137': 'mp4', '138': 'mp4', '139': 'mp4', - '140': 'mp4', - '141': 'mp4', - '160': 'mp4', + '140': 'm4a', + '141': 'm4a', + '160': 'm4a', # Dash webm '171': 'webm', From f6f1fc9286be14aa8e6a6ccfce50e159b46ab489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= Date: Fri, 18 Oct 2013 18:53:00 -0300 Subject: [PATCH 2/2] extractor: youtube: Fix extension of dash formats. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While we are at it, separate the audio formats from the video formats. Signed-off-by: Rogério Brito --- youtube_dl/extractor/youtube.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index cfc142f26..96ead3310 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -236,10 +236,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): '136': 'mp4', '137': 'mp4', '138': 'mp4', - '139': 'mp4', + '160': 'mp4', + + # Dash mp4 audio + '139': 'm4a', '140': 'm4a', '141': 'm4a', - '160': 'm4a', # Dash webm '171': 'webm',