diff options
author | mkaay <mkaay@mkaay.de> | 2009-11-09 21:06:39 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-11-09 21:06:39 +0100 |
commit | a58cfc276be9736578d7ce8f1dd63a621f94c637 (patch) | |
tree | 03d24194dc87c1141d780378b94f2b2d5652293d /module/plugins/Plugin.py | |
parent | uploaded.to premium (diff) | |
download | pyload-a58cfc276be9736578d7ce8f1dd63a621f94c637.tar.xz |
checksum methods for RapidshareCom and UploadedTo
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 011f0e8f5..7b726c3ac 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -30,12 +30,12 @@ class Plugin(): self.config = {} props = {} props['name'] = "BasePlugin" - props['version'] = "0.1" + props['version'] = "0.2" props['pattern'] = None props['type'] = "hoster" props['description'] = """Base Plugin""" - props['author_name'] = ("RaNaN", "spoob") - props['author_mail'] = ("RaNaN@pyload.org", "spoob@pyload.org") + props['author_name'] = ("RaNaN", "spoob", "mkaay") + props['author_mail'] = ("RaNaN@pyload.org", "spoob@pyload.org", "mkaay@mkaay.de") self.props = props self.parent = parent self.req = Request() @@ -121,3 +121,14 @@ class Plugin(): def __call__(self): return self.props['name'] + + def check_file(self, local_file): + """ + return codes: + 0 - checksum ok + 1 - checksum wrong + 5 - can't get checksum + 10 - not implemented + 20 - unknown error + """ + return (True, 10) |