mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 15:57:23 +00:00
Resolve audio/x-wav to "wav" extension, rather than "x-wav" (which ffmpeg does not recognize)
This was causing ffmpeg errors when trying to downloading certain audio files from Soundcloud with the --add-metadata option set.
This commit is contained in:
parent
f5863a3ea0
commit
ba39289d79
1 changed files with 1 additions and 0 deletions
|
@ -4173,6 +4173,7 @@ def mimetype2ext(mt):
|
||||||
# Per RFC 3003, audio/mpeg can be .mp1, .mp2 or .mp3. Here use .mp3 as
|
# Per RFC 3003, audio/mpeg can be .mp1, .mp2 or .mp3. Here use .mp3 as
|
||||||
# it's the most popular one
|
# it's the most popular one
|
||||||
'audio/mpeg': 'mp3',
|
'audio/mpeg': 'mp3',
|
||||||
|
'audio/x-wav': 'wav',
|
||||||
}.get(mt)
|
}.get(mt)
|
||||||
if ext is not None:
|
if ext is not None:
|
||||||
return ext
|
return ext
|
||||||
|
|
Loading…
Reference in a new issue