1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-26 09:36:46 +00:00

[soundlcoud] Set the correct extension for the tracks (fixes #1766)

Some tracks are not in mp3 format, they can be wav files.
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-11-14 19:45:39 +01:00
parent c66d2baa9c
commit e3b9ab5e18

View file

@ -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,
}