diff options
author | tfvlrue <35318734+tfvlrue@users.noreply.github.com> | 2020-08-28 12:00:30 -0400 |
---|---|---|
committer | tfvlrue <35318734+tfvlrue@users.noreply.github.com> | 2020-08-28 12:00:30 -0400 |
commit | ba39289d79452650263cc6e7950d41fba8dcef8e (patch) | |
tree | f83cb19f011ab5c4fcbbb66e04702e9d6b3310c1 | |
parent | f5863a3ea08492bd9fc04c55e1e912d24e92d49b (diff) | |
download | hypervideo-pre-ba39289d79452650263cc6e7950d41fba8dcef8e.tar.lz hypervideo-pre-ba39289d79452650263cc6e7950d41fba8dcef8e.tar.xz hypervideo-pre-ba39289d79452650263cc6e7950d41fba8dcef8e.zip |
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.
-rw-r--r-- | youtube_dl/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index d1eca3760..c73f5e0ca 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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 |