summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Extractor.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-22 16:04:22 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-22 16:04:22 +0100
commit8c3e4e66df22e61aad76541995de8af94038d554 (patch)
tree80b19ef9e785305f5c202d142eaff70cc7d0082b /module/plugins/internal/Extractor.py
parent[ClickAndLoad] Improve (2) (diff)
parentSome more changes (diff)
downloadpyload-8c3e4e66df22e61aad76541995de8af94038d554.tar.xz
Merge pull request #1194 from immenz/dev_extract
[ExtractArchive] Some more changes
Diffstat (limited to 'module/plugins/internal/Extractor.py')
-rw-r--r--module/plugins/internal/Extractor.py30
1 files changed, 16 insertions, 14 deletions
diff --git a/module/plugins/internal/Extractor.py b/module/plugins/internal/Extractor.py
index b445f1497..8bf1875cf 100644
--- a/module/plugins/internal/Extractor.py
+++ b/module/plugins/internal/Extractor.py
@@ -19,7 +19,7 @@ class PasswordError(Exception):
class Extractor:
__name__ = "Extractor"
- __version__ = "0.20"
+ __version__ = "0.21"
__description__ = """Base extractor plugin"""
__license__ = "GPLv3"
@@ -30,6 +30,7 @@ class Extractor:
EXTENSIONS = []
VERSION = ""
+ REPAIR = False
@classmethod
@@ -90,23 +91,24 @@ class Extractor:
def check(self):
- """Check if password if needed. Raise ArchiveError if integrity is
- questionable.
+ """Quick Check by listing content of archive.
+ Raises error if password is needed, integrity is questionable or else.
- :return: boolean
+ :raises PasswordError
+ :raises CRCError
:raises ArchiveError
"""
- raise PasswordError
-
-
- def isPassword(self, password):
- """ Check if the given password is/might be correct.
- If it can not be decided at this point return true.
-
- :param password:
- :return: boolean
+ raise NotImplementedError
+
+ def test(self):
+ """Testing with Extractors buildt-in method
+ Raises error if password is needed, integrity is questionable or else.
+
+ :raises PasswordError
+ :raises CRCError
+ :raises ArchiveError
"""
- return None
+ raise NotImplementedError
def repair(self):