diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-09 01:22:07 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-09 01:22:07 +0200 |
commit | c6735bcb70a16f38ac69704af4f36819fad44202 (patch) | |
tree | a60fc2d09be3cdf9be88ded88d8ee143c16e5e9d /module/plugins/crypter/TNTVillageScambioeticoOrg.py | |
parent | Fix https://github.com/pyload/pyload/issues/1468 (diff) | |
download | pyload-c6735bcb70a16f38ac69704af4f36819fad44202.tar.xz |
New plugin: TNTVillageScambioeticoOrg
Diffstat (limited to 'module/plugins/crypter/TNTVillageScambioeticoOrg.py')
-rw-r--r-- | module/plugins/crypter/TNTVillageScambioeticoOrg.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/module/plugins/crypter/TNTVillageScambioeticoOrg.py b/module/plugins/crypter/TNTVillageScambioeticoOrg.py new file mode 100644 index 000000000..5606b8a7f --- /dev/null +++ b/module/plugins/crypter/TNTVillageScambioeticoOrg.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- + +from module.plugins.internal.SimpleCrypter import SimpleCrypter, create_getInfo + + +class TNTVillageScambioeticoOrg(SimpleCrypter): + __name__ = "TNTVillageScambioeticoOrg" + __type__ = "crypter" + __version__ = "0.01" + + __pattern__ = r'http://(?:www\.)?forum\.tntvillage\.scambioetico\.org/index\.php\?.*showtopic=\d+' + __config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True), #: Overrides core.config['general']['folder_per_package'] + ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)] + + __description__ = """TNTVillage.scambioetico.org decrypter plugin""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] + + + LINK_PATTERNS = [r'<th class="titlemedium"><a href=\'(.+?)\'', r"<a href='(\./index\.php\?act.+?)'"] + + + def getLinks(self): + for p in self.LINK_PATTERNS: + self.LINK_PATTERN = p + links = super(TNTVillageScambioeticoOrg, self).getLinks() + if links: + return links + + +getInfo = create_getInfo(TNTVillageScambioeticoOrg) |