From dd986a414983cf4e64be777e17f517c5915b88e3 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Fri, 26 Apr 2024 15:31:22 -0700 Subject: [PATCH] Linter --- yt_dlp/postprocessor/movefilesafterdownload.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/yt_dlp/postprocessor/movefilesafterdownload.py b/yt_dlp/postprocessor/movefilesafterdownload.py index e8ba86d78..b0a17c5f0 100644 --- a/yt_dlp/postprocessor/movefilesafterdownload.py +++ b/yt_dlp/postprocessor/movefilesafterdownload.py @@ -8,7 +8,6 @@ from ..utils import ( make_dir, replace_extension ) -import pdb class MoveFilesAfterDownloadPP(PostProcessor): @@ -89,17 +88,10 @@ class MoveFilesAfterDownloadPP(PostProcessor): return final_filepath def run(self, info): - # Map of the keys that contain moveable files and the 'type' of the file - # for generating the output filename - child_keys = { - 'thumbnails': 'thumbnail', - 'requested_subtitles': 'subtitle' - } - # This represents the main media file (using the 'filepath' key) self.move_file_and_write_to_info(info) - for key, output_file_type in child_keys.items(): + for key, output_file_type in self.CHILD_KEYS.items(): if key not in info: continue