From d60f2a4aece4ffea20b580ab5e7d4ae9fe1bf22d Mon Sep 17 00:00:00 2001 From: rouggy Date: Wed, 26 Jan 2022 18:52:28 +0700 Subject: [PATCH] update --- filebot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/filebot.py b/filebot.py index 7ac095c..6b670f9 100644 --- a/filebot.py +++ b/filebot.py @@ -7,13 +7,13 @@ from pathlib import Path 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,6 +22,7 @@ for root, dirs, files in os.walk(source_path): for file in files: rar_file = glob(f"{os.path.join(root, '')}*rar") if rar_file: + print(f"Found rar file {rar_file}") subprocess.run(["/usr/bin/unrar", 'e', rar_file[0], '-idq', '']) print("Deleting rar, sfv, nfo files...")