summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Extractor.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-19 04:48:07 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-19 04:48:07 +0200
commitffd38f027ed103f7b39ec78c6af0d182774950a4 (patch)
treee6d88b064a38bb44932674f32ac602efc786468b /module/plugins/internal/Extractor.py
parentMerge pull request #2054 from GammaC0de/patch-1 (diff)
downloadpyload-ffd38f027ed103f7b39ec78c6af0d182774950a4.tar.xz
Spare fixes
Diffstat (limited to 'module/plugins/internal/Extractor.py')
-rw-r--r--module/plugins/internal/Extractor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/Extractor.py b/module/plugins/internal/Extractor.py
index 6629b0652..a8002a1d2 100644
--- a/module/plugins/internal/Extractor.py
+++ b/module/plugins/internal/Extractor.py
@@ -50,7 +50,7 @@ class Extractor(Plugin):
@classmethod
- def is_archive(cls, filename):
+ def isarchive(cls, filename):
name = os.path.basename(filename).lower()
return any(name.endswith(ext) for ext in cls.EXTENSIONS)
@@ -74,8 +74,8 @@ class Extractor(Plugin):
processed = []
for fname, id, fout in files_ids:
- if cls.is_archive(fname):
- pname = re.sub(cls.re_multipart, "", fname) if cls.is_multipart(fname) else os.path.splitext(fname)[0]
+ if cls.isarchive(fname):
+ pname = re.sub(cls.re_multipart, "", fname) if cls.ismultipart(fname) else os.path.splitext(fname)[0]
if pname not in processed:
processed.append(pname)
targets.append((fname, id, fout))