summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/AbstractExtractor.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 18:45:17 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 18:45:17 +0100
commitda9e6c949243613f4d5e100cac6ff192449b4718 (patch)
tree5c9d96913d8a86a822821f781ab209105e426489 /module/plugins/internal/AbstractExtractor.py
parentUpdate checkFile routine in some hoster plugins (diff)
downloadpyload-da9e6c949243613f4d5e100cac6ff192449b4718.tar.xz
Update extractor plugins
Diffstat (limited to 'module/plugins/internal/AbstractExtractor.py')
-rw-r--r--module/plugins/internal/AbstractExtractor.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/module/plugins/internal/AbstractExtractor.py b/module/plugins/internal/AbstractExtractor.py
index 2317ad689..c8a73c861 100644
--- a/module/plugins/internal/AbstractExtractor.py
+++ b/module/plugins/internal/AbstractExtractor.py
@@ -14,23 +14,24 @@ class WrongPassword(Exception):
class AbtractExtractor:
__name__ = "AbtractExtractor"
- __version__ = "0.10"
+ __version__ = "0.11"
__description__ = """Abtract extractor plugin"""
__license__ = "GPLv3"
- __authors__ = [("pyLoad Team", "admin@pyload.org")]
+ __authors__ = [("RaNaN", "ranan@pyload.org"),
+ ("Walter Purcaro", "vuolter@gmail.com")]
- @staticmethod
- def checkDeps():
+ @classmethod
+ def checkDeps(cls):
""" Check if system statisfy dependencies
:return: boolean
"""
return True
- @staticmethod
- def getTargets(files_ids):
+ @classmethod
+ def getTargets(cls, files_ids):
""" Filter suited targets from list of filename id tuple list
:param files_ids: List of filepathes
:return: List of targets, id tuple list
@@ -48,14 +49,14 @@ class AbtractExtractor:
:param overwrite: Overwrite existing archives
:param renice: Renice value
"""
- self.m = m
- self.file = file
- self.out = out
- self.fullpath = fullpath
- self.overwrite = overwrite
+ self.m = m
+ self.file = file
+ self.out = out
+ self.fullpath = fullpath
+ self.overwrite = overwrite
self.excludefiles = excludefiles
- self.renice = renice
- self.files = [] #: Store extracted files here
+ self.renice = renice
+ self.files = [] #: Store extracted files here
def init(self):
@@ -83,7 +84,7 @@ class AbtractExtractor:
return True
- def extract(self, progress, password=None):
+ def extract(self, progress, password=""):
"""Extract the archive. Raise specific errors in case of failure.
:param progress: Progress function, call this to update status