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: