commit 2e24e6bd17ef3dbdda390ee3f258e05c7ef00dc0
parent a5ebf77d877ededed377db920faf4f31644573cf
Author: pulpe <Pulpan3@gmail.com>
Date: Sat, 25 Apr 2015 20:41:59 +0200
Merge branch 'mp3'
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py
@@ -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.')