1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 17:53:11 +08:00

Merge branch 'mp3'

This commit is contained in:
pulpe 2015-04-25 20:41:59 +02:00
commit 2e24e6bd17

View File

@ -11,6 +11,7 @@ from ..compat import (
compat_urlretrieve,
)
from ..utils import (
determine_ext,
check_executable,
encodeFilename,
PostProcessingError,
@ -27,7 +28,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
def run(self, info):
filename = info['filepath']
temp_filename = prepend_extension(filename, 'temp')
temp_thumbnail = prepend_extension(filename, 'thumb')
temp_thumbnail = filename + '.' + determine_ext(info['thumbnail'])
if not info.get('thumbnail'):
raise EmbedThumbnailPPError('Thumbnail was not found. Nothing to do.')