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 os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import imghdr
|
try:
|
||||||
from mutagen.id3 import PictureType, ID3, APIC
|
import imghdr
|
||||||
from mutagen.mp4 import MP4, MP4Cover
|
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
|
from .ffmpeg import FFmpegPostProcessor
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user