From 5d51ddbbfc454d852eacd07444eb16aa02053c28 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Tue, 23 Apr 2024 11:04:46 -0700 Subject: [PATCH] Removed unneeded conditionals + return --- yt_dlp/postprocessor/movefilesafterdownload.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/yt_dlp/postprocessor/movefilesafterdownload.py b/yt_dlp/postprocessor/movefilesafterdownload.py index 73d0d623c..4e3344ebd 100644 --- a/yt_dlp/postprocessor/movefilesafterdownload.py +++ b/yt_dlp/postprocessor/movefilesafterdownload.py @@ -21,8 +21,6 @@ def pp_key(cls): def expand_relative_paths(self, files_to_move, finaldir): for filetype in self.FILETYPE_KEYS: - if filetype not in files_to_move: - continue for file_attrs in files_to_move[filetype]: if not os.path.isabs(file_attrs['final_filepath']): file_attrs['final_filepath'] = os.path.join(finaldir, file_attrs['final_filepath']) @@ -34,7 +32,6 @@ def expand_relative_paths(self, files_to_move, finaldir): def write_filepath_into_info(self, info, filetype, file_attrs): if filetype == 'media': info['filepath'] = file_attrs['final_filepath'] - return elif filetype == 'thumbnails': for filetype_dict in info[filetype]: