mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-27 02:44:33 +01:00
Tests won't yell that mutagen is missing
This commit is contained in:
parent
17f82ec733
commit
0fab63b776
@ -5,8 +5,11 @@ from __future__ import unicode_literals
|
|||||||
import os
|
import os
|
||||||
from .ffmpeg import FFmpegPostProcessor
|
from .ffmpeg import FFmpegPostProcessor
|
||||||
|
|
||||||
import imghdr
|
try:
|
||||||
from mutagen.mp4 import MP4, MP4Cover, MP4MetadataError
|
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 (
|
from ..utils import (
|
||||||
prepend_extension,
|
prepend_extension,
|
||||||
|
Loading…
Reference in New Issue
Block a user