diff --git a/yt_dlp/postprocessor/movefilesafterdownload.py b/yt_dlp/postprocessor/movefilesafterdownload.py index d990eedf6..73d0d623c 100644 --- a/yt_dlp/postprocessor/movefilesafterdownload.py +++ b/yt_dlp/postprocessor/movefilesafterdownload.py @@ -7,6 +7,7 @@ make_dir, ) + class MoveFilesAfterDownloadPP(PostProcessor): FILETYPE_KEYS = ['media', 'thumbnails', 'requested_subtitles'] @@ -51,7 +52,7 @@ def run(self, info): info['__files_to_move']['media'] = [] if self._downloaded: - info['__files_to_move']['media'] = [{ 'current_filepath': info['filepath'], 'final_filepath': dl_name }] + info['__files_to_move']['media'] = [{'current_filepath': info['filepath'], 'final_filepath': dl_name}] files_to_move = self.expand_relative_paths(info['__files_to_move'], finaldir)