From aadea00bfa13407fec9dc1eccbbca5dd162793c0 Mon Sep 17 00:00:00 2001 From: rouggy Date: Wed, 26 Jan 2022 20:08:55 +0700 Subject: [PATCH] update --- filebot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filebot.py b/filebot.py index 9487dc8..7410dba 100644 --- a/filebot.py +++ b/filebot.py @@ -20,9 +20,10 @@ 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)): rar_file = glob(f"{os.path.join(source_path, section, dir, '')}*rar") + print(f"Found rar file: {rar_file}") if rar_file: print(f"Found rar file {rar_file}") - subprocess.run(["/usr/bin/unrar", 'e', rar_file[0], '-idq', rar_file]) + subprocess.run(["/usr/bin/unrar", 'e', rar_file[0], '-idq', os.path.join(source_path, section, dir, rar_file)]) for section in section_folders: if os.path.exists(os.path.join(source_path, section)):