mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-08 12:30:10 +09:00
Fixed missing imports, ran Flake8 over the fille.
This commit is contained in:
parent
de3865fec0
commit
9ca71e76ba
@ -18,6 +18,8 @@ from ..utils import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from base64 import b64encode
|
from base64 import b64encode
|
||||||
|
from shutil import copyfile
|
||||||
|
|
||||||
|
|
||||||
class EmbedThumbnailPPError(PostProcessingError):
|
class EmbedThumbnailPPError(PostProcessingError):
|
||||||
pass
|
pass
|
||||||
@ -135,9 +137,9 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
|
|||||||
raise EmbedThumbnailPPError('mutagen was not found. Please install.')
|
raise EmbedThumbnailPPError('mutagen was not found. Please install.')
|
||||||
|
|
||||||
# to prevent the behaviour of in-place modification of Mutagen
|
# to prevent the behaviour of in-place modification of Mutagen
|
||||||
shutil.copyfile(filename, temp_filename)
|
copyfile(filename, temp_filename)
|
||||||
|
|
||||||
aufile = {'opus': OggOpus, 'flac': FLAC, 'ogg', OggVorbis}[info['ext']](temp_filename)
|
aufile = {'opus': OggOpus, 'flac': FLAC, 'ogg': OggVorbis}[info['ext']](temp_filename)
|
||||||
|
|
||||||
covart = Picture()
|
covart = Picture()
|
||||||
covart.data = open(thumbnail_filename, 'rb').read()
|
covart.data = open(thumbnail_filename, 'rb').read()
|
||||||
|
Loading…
Reference in New Issue
Block a user