mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-09 12:17:25 +08:00
Throw exceptions if 'mutagen' cannot be found
This commit is contained in:
parent
fd35c3fbaa
commit
e82a75d7e7
@ -5,9 +5,12 @@ from __future__ import unicode_literals
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import imghdr
|
||||
from mutagen.id3 import PictureType, ID3, APIC
|
||||
from mutagen.mp4 import MP4, MP4Cover
|
||||
try:
|
||||
import imghdr
|
||||
from mutagen.id3 import PictureType, ID3, APIC
|
||||
from mutagen.mp4 import MP4, MP4Cover
|
||||
except ImportError:
|
||||
raise Exception('[embedthumbnail] Mutagen isn\'t found as a dependency to embed thumbnails!')
|
||||
|
||||
from .ffmpeg import FFmpegPostProcessor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user