Merge pull request #19 from tfvlrue/master

[soundcloud] Resolve audio/x-wav
This commit is contained in:
Tom-Oliver Heidel 2020-09-01 00:10:46 +02:00 committed by GitHub
commit fbfeb7c74a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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