瀏覽代碼

[YoutubeDL] mp3 is compatible with mp4

Sergey M․ 10 年之前
父節點
當前提交
6728187ac0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/YoutubeDL.py

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -1380,7 +1380,7 @@ class YoutubeDL(object):
                         video_ext, audio_ext = audio.get('ext'), video.get('ext')
                         video_ext, audio_ext = audio.get('ext'), video.get('ext')
                         if video_ext and audio_ext:
                         if video_ext and audio_ext:
                             COMPATIBLE_EXTS = (
                             COMPATIBLE_EXTS = (
-                                ('mp4', 'm4a', 'm4p', 'm4b', 'm4r', 'm4v'),
+                                ('mp3', 'mp4', 'm4a', 'm4p', 'm4b', 'm4r', 'm4v'),
                                 ('webm')
                                 ('webm')
                             )
                             )
                             for exts in COMPATIBLE_EXTS:
                             for exts in COMPATIBLE_EXTS: