From: Jaime Marquínez Ferrándiz Date: Thu, 14 Nov 2013 18:45:39 +0000 (+0100) Subject: [soundlcoud] Set the correct extension for the tracks (fixes #1766) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e3b9ab5e187a590143f7f6110e55d43fb78f15bc;p=youtube-dl [soundlcoud] Set the correct extension for the tracks (fixes #1766) Some tracks are not in mp3 format, they can be wav files. --- diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py index 4717fbb77..83e1f055f 100644 --- a/youtube_dl/extractor/soundcloud.py +++ b/youtube_dl/extractor/soundcloud.py @@ -87,7 +87,7 @@ class SoundcloudIE(InfoExtractor): 'uploader': info['user']['username'], 'upload_date': unified_strdate(info['created_at']), 'title': info['title'], - 'ext': u'mp3', + 'ext': info.get('original_format', u'mp3'), 'description': info['description'], 'thumbnail': thumbnail, }