Skip to content

Commit

Permalink
Resolve audio/x-wav to "wav" extension, rather than "x-wav" (which ff…
Browse files Browse the repository at this point in the history
…mpeg does not recognize)

This was causing ffmpeg errors when trying to downloading certain audio files from Soundcloud with the --add-metadata option set.
  • Loading branch information
tfvlrue committed Aug 28, 2020
1 parent f5863a3 commit ba39289
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions youtube_dl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4173,6 +4173,7 @@ def mimetype2ext(mt):
# Per RFC 3003, audio/mpeg can be .mp1, .mp2 or .mp3. Here use .mp3 as
# it's the most popular one
'audio/mpeg': 'mp3',
'audio/x-wav': 'wav',
}.get(mt)
if ext is not None:
return ext
Expand Down

0 comments on commit ba39289

Please sign in to comment.