pull/9774/head
Kieran Eglin 2024-04-26 15:31:22 -07:00
rodzic c3fccc58cf
commit dd986a4149
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 193984967FCF432D
1 zmienionych plików z 1 dodań i 9 usunięć

Wyświetl plik

@ -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