# -*- coding: utf-8 -*- from pyload.plugin.internal.SimpleCrypter import SimpleCrypter import re class TnyCz(SimpleCrypter): __name = "TnyCz" __type = "crypter" __version = "0.03" __pattern = r'http://(?:www\.)?tny\.cz/\w+' __config = [("use_premium" , "bool", "Use premium account if available" , True), ("use_subfolder" , "bool", "Save package to subfolder" , True), ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)] __description = """Tny.cz decrypter plugin""" __license = "GPLv3" __authors = [("Walter Purcaro", "vuolter@gmail.com")] NAME_PATTERN = r'(?P<N>.+) - .+' def getLinks(self): m = re.search(r'', self.html) return re.findall(".+", self.load(m.group(1), decode=True)) if m else None