1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[ExtractAudio] Handle outtmpl without ext (#6005)

Authored by: carusocr
Closes #5968
This commit is contained in:
Chris Caruso
2023-02-17 00:06:15 -08:00
committed by GitHub
parent 5e1a54f63e
commit f737fb16d8
2 changed files with 1 additions and 6 deletions

View File

@ -508,8 +508,7 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
if acodec != 'copy':
more_opts = self._quality_args(acodec)
# not os.path.splitext, since the latter does not work on unicode in all setups
temp_path = new_path = f'{path.rpartition(".")[0]}.{extension}'
temp_path = new_path = replace_extension(path, extension, information['ext'])
if new_path == path:
if acodec == 'copy':