From b3f1ef087afbf8ab666795dd9a01a9abfdd7a731 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Mon, 8 Jul 2024 05:11:49 +0000 Subject: [PATCH] (merge conflict resolution) don't pass the dot to `replace_extension` --- yt_dlp/postprocessor/movefilesafterdownload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/postprocessor/movefilesafterdownload.py b/yt_dlp/postprocessor/movefilesafterdownload.py index ed544dc13..149d68447 100644 --- a/yt_dlp/postprocessor/movefilesafterdownload.py +++ b/yt_dlp/postprocessor/movefilesafterdownload.py @@ -49,7 +49,7 @@ def determine_filepath(self, info_dict, relevant_dict, output_file_type): else: desired_extension = Path(current_filepath).suffix - return current_filepath, replace_extension(prepared_filepath, desired_extension) + return current_filepath, replace_extension(prepared_filepath, desired_extension[1:]) def move_file(self, info_dict, current_filepath, final_filepath): if not current_filepath or not final_filepath: