From 08e48f24604b9ce69f114e9e98a8332fba8d60e6 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 11 Oct 2012 03:10:05 +0200 Subject: [PATCH] Add .rar support --- catarc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/catarc b/catarc index 30f1fb3..e6cb047 100644 --- a/catarc +++ b/catarc @@ -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