# -*- coding: utf-8 -*- import re from urlparse import urlparse from pyload.plugin.Crypter import Crypter from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo, replace_patterns, set_cookies from pyload.utils import fixup class SimpleCrypter(Crypter, SimpleHoster): __name = "SimpleCrypter" __type = "crypter" __version = "0.32" __pattern = r'^unmatchable$' __config = [("use_subfolder", "bool", "Save package to subfolder", True), #: Overrides core.config['general']['folder_per_package'] ("subfolder_per_package", "bool", "Create a subfolder for each package", True)] __description = """Simple decrypter plugin""" __license = "GPLv3" __authors = [("stickell", "l.stickell@yahoo.it"), ("zoidberg", "zoidberg@mujmail.cz"), ("Walter Purcaro", "vuolter@gmail.com")] """ Following patterns should be defined by each crypter: LINK_PATTERN: group(1) must be a download link or a regex to catch more links example: LINK_PATTERN = r'