diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-18 17:06:25 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-18 17:06:25 +0200 |
commit | 2fc5b104fa375e66d13868427510d5dca0c5acb8 (patch) | |
tree | b43d5063edcbcefadf4311f3d9060f5fe9ba2f6c | |
parent | Spare fixes (diff) | |
download | pyload-2fc5b104fa375e66d13868427510d5dca0c5acb8.tar.xz |
New plugin: JDlist
-rw-r--r-- | module/plugins/crypter/JDlist.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/module/plugins/crypter/JDlist.py b/module/plugins/crypter/JDlist.py new file mode 100644 index 000000000..faf3b74cd --- /dev/null +++ b/module/plugins/crypter/JDlist.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +from module.plugins.internal.Crypter import Crypter, create_getInfo + + +class JDlist(Crypter): + __name__ = "JDlist" + __type__ = "crypter" + __version__ = "0.01" + __status__ = "testing" + + __pattern__ = r'jdlist://(?P<LIST>[\w\+^_]+==)' + __config__ = [("activated" , "bool", "Activated" , True), + ("use_subfolder" , "bool", "Save package to subfolder" , True), + ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)] + + __description__ = """JDlist decrypter plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] + + + def decrypt(self, pyfile): + self.urls.extend(self.info['pattern']['LIST'].decode('base64').split(',')) + + +getInfo = create_getInfo(JDlist) |