diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-02-02 18:56:28 +0100 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-02-02 18:56:28 +0100 |
commit | 5f96aee046a5fad531aadc1fad88716960aa61f5 (patch) | |
tree | 7b8cf3b06619301a928e0a19a35907bdc74bc00b /module/plugins/crypter | |
parent | little plugin fixes (diff) | |
download | pyload-5f96aee046a5fad531aadc1fad88716960aa61f5.tar.xz |
fix linkdecrypter hook, add 115.com
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/DontKnowMe.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/module/plugins/crypter/DontKnowMe.py b/module/plugins/crypter/DontKnowMe.py new file mode 100644 index 000000000..dfa72df47 --- /dev/null +++ b/module/plugins/crypter/DontKnowMe.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- + +import re +import urllib + +from module.plugins.Crypter import Crypter + +class DontKnowMe(Crypter): + __name__ = "DontKnowMe" + __type__ = "crypter" + __pattern__ = r"http://dontknow.me/at/\?.+$" + __version__ = "0.1" + __description__ = """DontKnowMe""" + __author_name__ = ("selaux") + __author_mail__ = ("") + + LINK_PATTERN = r"http://dontknow.me/at/\?(.+)$" + + def decrypt(self, pyfile): + link = re.findall(self.LINK_PATTERN, self.pyfile.url)[0] + self.core.files.addLinks([ urllib.unquote(link) ], self.pyfile.package().id) |