diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2016-06-17 05:50:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-17 05:50:38 +0200 |
commit | 8f3bc7699d27784dc75fdaa43150a7a70722aea8 (patch) | |
tree | f4f0a7a7173b254e56fa0fc57ab2a0c48b566e9e /module/plugins/internal/Extractor.py | |
parent | [UptoboxCom] fix #2506 (diff) | |
parent | UnRar FIX file exclusion not working (diff) | |
download | pyload-8f3bc7699d27784dc75fdaa43150a7a70722aea8.tar.xz |
ExtractArchive Fix/#2168
Diffstat (limited to 'module/plugins/internal/Extractor.py')
-rw-r--r-- | module/plugins/internal/Extractor.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/module/plugins/internal/Extractor.py b/module/plugins/internal/Extractor.py index 8a16cdd38..a912843a1 100644 --- a/module/plugins/internal/Extractor.py +++ b/module/plugins/internal/Extractor.py @@ -23,7 +23,7 @@ class PasswordError(Exception): class Extractor(Plugin): __name__ = "Extractor" __type__ = "extractor" - __version__ = "0.42" + __version__ = "0.43" __status__ = "stable" __description__ = """Base extractor plugin""" @@ -104,7 +104,7 @@ class Extractor(Plugin): self.excludefiles = excludefiles self.priority = priority self.keepbroken = keepbroken - self.progress = lambda x: pyfile.setProgress(int(x)) + self.files = None self.init() @@ -119,11 +119,6 @@ class Extractor(Plugin): return encode(self.out) - def _log(self, level, plugintype, pluginname, messages): - messages = (self.__name__,) + messages - return self.pyfile.plugin._log(level, plugintype, self.pyfile.plugin.__name__, messages) - - def verify(self, password=None): """ Testing with Extractors built-in method @@ -156,3 +151,9 @@ class Extractor(Plugin): Return list of archive files """ raise NotImplementedError + + def progress(self, x): + """ + Set extraction progress + """ + return self.pyfile.setProgress(int(x)) |