This commit is contained in:
Gregory Salaun 2022-01-26 20:07:11 +07:00
parent d4b94c16d4
commit c3f4c2d3cc

View File

@ -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', rar_file])
for section in section_folders:
if os.path.exists(os.path.join(source_path, section)):