summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnRar.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-02 20:30:39 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-02 20:30:39 +0100
commitedbdf15081e27c680e390aaaa05788e0396376dd (patch)
tree52595439b2a52738ab68746834e3e3cea4695531 /module/plugins/internal/UnRar.py
parentNew crypter: FreetexthostCom (diff)
parentMerge remote-tracking branch 'upstream/stable' into stable (diff)
downloadpyload-edbdf15081e27c680e390aaaa05788e0396376dd.tar.xz
Merge pull request #351 from AndroKev/stable
ExtractArchives - add an option to excludefiles
Diffstat (limited to 'module/plugins/internal/UnRar.py')
-rw-r--r--module/plugins/internal/UnRar.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index da8e7cf3d..80ee39cdf 100644
--- a/module/plugins/internal/UnRar.py
+++ b/module/plugins/internal/UnRar.py
@@ -29,7 +29,7 @@ from module.plugins.internal.AbstractExtractor import AbtractExtractor, WrongPas
class UnRar(AbtractExtractor):
__name__ = "UnRar"
- __version__ = "0.13"
+ __version__ = "0.14"
# there are some more uncovered rar formats
re_splitfile = re.compile(r"(.*)\.part(\d+)\.rar$", re.I)
@@ -185,7 +185,11 @@ class UnRar(AbtractExtractor):
args = []
#overwrite flag
args.append("-o+") if self.overwrite else args.append("-o-")
-
+
+ if self.excludefiles:
+ for word in self.excludefiles.split(';'):
+ args.append("-x%s" % word )
+
# assume yes on all queries
args.append("-y")
@@ -195,7 +199,6 @@ class UnRar(AbtractExtractor):
else:
args.append("-p-")
-
#NOTE: return codes are not reliable, some kind of threading, cleanup whatever issue
call = [self.CMD, command] + args + list(xargs)
self.m.logDebug(" ".join(call))