From 2fc5b104fa375e66d13868427510d5dca0c5acb8 Mon Sep 17 00:00:00 2001 From: Walter Purcaro <vuolter@users.noreply.github.com> Date: Sun, 18 Oct 2015 17:06:25 +0200 Subject: New plugin: JDlist --- module/plugins/crypter/JDlist.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 module/plugins/crypter/JDlist.py (limited to 'module') 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) -- cgit v1.2.3