From 4c658eac53a3bf1df14f405013b0c22720af4c13 Mon Sep 17 00:00:00 2001 From: rouggy Date: Wed, 26 Jan 2022 20:16:14 +0700 Subject: [PATCH] update --- filebot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/filebot.py b/filebot.py index 86773ad..796d6ea 100644 --- a/filebot.py +++ b/filebot.py @@ -22,10 +22,9 @@ for section in section_folders: print(f"Found dir: {dir}") unrar_sys_package = '/usr/bin/unrar' 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 {os.path.join(source_path, section, dir, rar_file)}") - subprocess.run([unrar_sys_package, 'e', rar_file[0], '-idq', os.path.join(source_path, section, dir, 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)):