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

Mutagen is a required dependency.

This commit is contained in:
shin 2019-12-26 14:26:53 +05:30
parent 9556018388
commit 17f82ec733
2 changed files with 6 additions and 7 deletions

View File

@ -114,6 +114,9 @@ setup(
'youtube_dl',
'youtube_dl.extractor', 'youtube_dl.downloader',
'youtube_dl.postprocessor'],
install_requires=[
'mutagen'
],
# Provokes warning on most systems (why?!)
# test_suite = 'nose.collector',

View File

@ -3,15 +3,11 @@ from __future__ import unicode_literals
import os
try:
import imghdr
from mutagen.mp4 import MP4, MP4Cover, MP4MetadataError
except ImportError:
raise Warning('[embedthumbnail] Mutagen isn\'t found for M4A thumbnail embedding, install from PyPI.')
from .ffmpeg import FFmpegPostProcessor
import imghdr
from mutagen.mp4 import MP4, MP4Cover, MP4MetadataError
from ..utils import (
prepend_extension,
encodeFilename,