aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpulpe <Pulpan3@gmail.com>2015-04-25 20:41:15 +0200
committerpulpe <Pulpan3@gmail.com>2015-04-25 20:41:15 +0200
commit2a09c1b8ab348c43ece3cf246645e7335a802ca9 (patch)
tree9fe1fd044136a0372f7afa40975f3464a57c25eb
parentbf6427d2fbcbd95cd1cb640e8b894c18782a2a12 (diff)
downloadyoutube-dl-2a09c1b8ab348c43ece3cf246645e7335a802ca9.tar.xz
[postprocessor/embedthumbnail] Fix mp3 embedding with avconv (fixes #5526)
-rw-r--r--youtube_dl/postprocessor/embedthumbnail.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/postprocessor/embedthumbnail.py b/youtube_dl/postprocessor/embedthumbnail.py
index 7ba98a0ea..4868a42fd 100644
--- 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.')