mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 06:57:17 +08:00
[soundcloud] Handle alternate preset descriptor for AAC streams
This commit is contained in:
parent
8c59456191
commit
898b30f51e
@ -227,10 +227,13 @@ class SoundcloudIE(InfoExtractor):
|
|||||||
acodec = 'opus'
|
acodec = 'opus'
|
||||||
ext = 'ogg'
|
ext = 'ogg'
|
||||||
abr = 64
|
abr = 64
|
||||||
elif stream['preset'] == 'aac_1_0':
|
elif stream['preset'] in ('aac_1_0', 'aac_hq'):
|
||||||
acodec = 'aac'
|
acodec = 'aac'
|
||||||
ext = 'm4a'
|
ext = 'm4a'
|
||||||
abr = 256
|
abr = 256
|
||||||
|
else:
|
||||||
|
self.to_screen('Stream type %s not recognised' % stream['preset'])
|
||||||
|
continue
|
||||||
|
|
||||||
format_id = ('%s-%s-%s' % (stream['format']['protocol'], acodec, abr))
|
format_id = ('%s-%s-%s' % (stream['format']['protocol'], acodec, abr))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user