From c374a2561a5c16446d95c6618cf51af8294082bc Mon Sep 17 00:00:00 2001 From: rouggy Date: Thu, 27 Jan 2022 21:58:49 +0700 Subject: [PATCH] update --- filebot.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/filebot.py b/filebot.py index b0546fc..0e46cb8 100644 --- a/filebot.py +++ b/filebot.py @@ -15,17 +15,6 @@ section_folders = ['4K-Movies', '4K-Series', 'Movies', 'Series'] # dest_path = "C:/Test/PostProcess" -print("Checking if rar files and unraring...") -for section in section_folders: - if os.path.exists(os.path.join(source_path, section)): - for dir in os.listdir(os.path.join(source_path, section)): - print(f"Found dir: {dir}") - unrar_sys_package = '/usr/bin/unrar' - rar_file = glob(f"{os.path.join(source_path, section, dir, '')}*rar") - if rar_file: - print(f"Found rar file {rar_file}") - subprocess.run([unrar_sys_package, 'e', rar_file[0], '-idq', os.path.join(source_path, section, dir)]) - for section in section_folders: if os.path.exists(os.path.join(source_path, section)): for dir in os.listdir(os.path.join(source_path, section)):