Add .rar support

develop
Sven Slootweg 12 years ago
parent 142f634cd8
commit 08e48f2460

@ -127,6 +127,9 @@ for item in file_list:
elif item.endswith(".zip"):
processor = "unzip"
returncode = subprocess.call(['unzip', '-p', item], stderr=stfu)
elif item.endswith(".rar"):
processor = "unrar"
returncode = subprocess.call(['unrar', 'p', '-inul', item], stderr=stfu)
else:
sys.stderr.write("WARNING: Skipping item %s, not a recognized archive type\n" % item)
failed += 1

Loading…
Cancel
Save