1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 07:27:15 +08:00

Tests won't yell that mutagen is missing

This commit is contained in:
shin 2019-12-26 14:30:49 +05:30
parent 17f82ec733
commit 0fab63b776

View File

@ -5,8 +5,11 @@ from __future__ import unicode_literals
import os
from .ffmpeg import FFmpegPostProcessor
import imghdr
from mutagen.mp4 import MP4, MP4Cover, MP4MetadataError
try:
import imghdr
from mutagen.mp4 import MP4, MP4Cover, MP4MetadataError
except ImportError:
print("[embedthumbnail] MP4 thumbnail embedding cannot be done, mutagen is missing.")
from ..utils import (
prepend_extension,