1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 07:07:19 +08:00

[soundcloud] Handle alternate preset descriptor for AAC streams

This commit is contained in:
Rob Jones 2019-02-09 21:45:44 +11:00
parent 8c59456191
commit 898b30f51e

View File

@ -227,10 +227,13 @@ class SoundcloudIE(InfoExtractor):
acodec = 'opus'
ext = 'ogg'
abr = 64
elif stream['preset'] == 'aac_1_0':
elif stream['preset'] in ('aac_1_0', 'aac_hq'):
acodec = 'aac'
ext = 'm4a'
abr = 256
else:
self.to_screen('Stream type %s not recognised' % stream['preset'])
continue
format_id = ('%s-%s-%s' % (stream['format']['protocol'], acodec, abr))