1
0
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:
shin 2019-12-26 13:00:51 +05:30
parent fd35c3fbaa
commit e82a75d7e7

View File

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