From b67e5779cab6471b2af2744dc5e31a7286abb90f Mon Sep 17 00:00:00 2001 From: rouggy Date: Wed, 26 Jan 2022 20:05:44 +0700 Subject: [PATCH] update --- filebot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/filebot.py b/filebot.py index 98ba673..9ec94cf 100644 --- a/filebot.py +++ b/filebot.py @@ -6,13 +6,13 @@ import os import subprocess import re -# source_path = Path('/mnt/Download/finished/') -# dest_path = '/mnt/Download/PostProcess/' +source_path = Path('/mnt/Download/finished/') +dest_path = '/mnt/Download/PostProcess/' section_folders = ['4K-Movies', '4K-Series', 'Movies', 'Series'] -source_path = 'C:/Test/finished' -dest_path = "C:/Test/PostProcess" +# source_path = 'C:/Test/finished' +# dest_path = "C:/Test/PostProcess" print("Checking if rar files and unraring...") @@ -22,7 +22,7 @@ for section in section_folders: rar_file = glob(f"{os.path.join(source_path, section, dir, '')}*rar") if rar_file: print(f"Found rar file {rar_file}") - # subprocess.run(["/usr/bin/unrar", 'e', rar_file[0], '-idq', '']) + subprocess.run(["/usr/bin/unrar", 'e', rar_file[0], '-idq', '']) for section in section_folders: if os.path.exists(os.path.join(source_path, section)):