mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 16:30:00 +08:00
Mutagen is a required dependency.
This commit is contained in:
parent
9556018388
commit
17f82ec733
3
setup.py
3
setup.py
@ -114,6 +114,9 @@ setup(
|
|||||||
'youtube_dl',
|
'youtube_dl',
|
||||||
'youtube_dl.extractor', 'youtube_dl.downloader',
|
'youtube_dl.extractor', 'youtube_dl.downloader',
|
||||||
'youtube_dl.postprocessor'],
|
'youtube_dl.postprocessor'],
|
||||||
|
install_requires=[
|
||||||
|
'mutagen'
|
||||||
|
],
|
||||||
|
|
||||||
# Provokes warning on most systems (why?!)
|
# Provokes warning on most systems (why?!)
|
||||||
# test_suite = 'nose.collector',
|
# test_suite = 'nose.collector',
|
||||||
|
@ -3,15 +3,11 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
|
|
||||||
import os
|
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
|
from .ffmpeg import FFmpegPostProcessor
|
||||||
|
|
||||||
|
import imghdr
|
||||||
|
from mutagen.mp4 import MP4, MP4Cover, MP4MetadataError
|
||||||
|
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
prepend_extension,
|
prepend_extension,
|
||||||
encodeFilename,
|
encodeFilename,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user