Browse Source

[utils] mimetype2ext: return 'm4a' for 'audio/mp4' (fixes #8620)

The youtube extractor was using 'mp4' for them, therefore filters like 'bestaudio[ext=m4a]' stopped working (94278f7202 broke it).
totalwebcasting
Jaime Marquínez Ferrándiz 9 years ago
parent
commit
765ac263db
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      youtube_dl/utils.py

+ 6
- 0
youtube_dl/utils.py View File

@ -1836,6 +1836,12 @@ def error_to_compat_str(err):
def mimetype2ext(mt):
ext = {
'audio/mp4': 'm4a',
}.get(mt)
if ext is not None:
return ext
_, _, res = mt.rpartition('/')
return {


Loading…
Cancel
Save