]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[postprocessor/embedthumbnail] Fix mp3 embedding with avconv (fixes #5526)
authorpulpe <Pulpan3@gmail.com>
Sat, 25 Apr 2015 18:41:15 +0000 (20:41 +0200)
committerpulpe <Pulpan3@gmail.com>
Sat, 25 Apr 2015 18:41:15 +0000 (20:41 +0200)
youtube_dl/postprocessor/embedthumbnail.py

index 7ba98a0ea6afbafc52e086ea29c704b8b736b948..4868a42fdca9f486bed5e1def3ffaf08b26fda39 100644 (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.')