Browse Source

[postprocessor/embedthumbnail] Fix mp3 embedding with avconv (fixes #5526)

totalwebcasting
pulpe 10 years ago
parent
commit
2a09c1b8ab
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/postprocessor/embedthumbnail.py

+ 2
- 1
youtube_dl/postprocessor/embedthumbnail.py 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.')


Loading…
Cancel
Save