mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 21:03:18 +00:00
[postprocessor/embedthumbnail] Fix mp3 embedding with avconv (fixes #5526)
This commit is contained in:
parent
bf6427d2fb
commit
2a09c1b8ab
|
@ -11,6 +11,7 @@
|
||||||
compat_urlretrieve,
|
compat_urlretrieve,
|
||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
|
determine_ext,
|
||||||
check_executable,
|
check_executable,
|
||||||
encodeFilename,
|
encodeFilename,
|
||||||
PostProcessingError,
|
PostProcessingError,
|
||||||
|
@ -27,7 +28,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor):
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
filename = info['filepath']
|
filename = info['filepath']
|
||||||
temp_filename = prepend_extension(filename, 'temp')
|
temp_filename = prepend_extension(filename, 'temp')
|
||||||
temp_thumbnail = prepend_extension(filename, 'thumb')
|
temp_thumbnail = filename + '.' + determine_ext(info['thumbnail'])
|
||||||
|
|
||||||
if not info.get('thumbnail'):
|
if not info.get('thumbnail'):
|
||||||
raise EmbedThumbnailPPError('Thumbnail was not found. Nothing to do.')
|
raise EmbedThumbnailPPError('Thumbnail was not found. Nothing to do.')
|
||||||
|
|
Loading…
Reference in a new issue