# -*- coding: utf-8 -*- import re from urllib import unquote from pyload.plugin.Crypter import Crypter from pyload.plugin.internal.SimpleHoster import fileUrl, set_cookies class SimpleDereferer(Crypter): __name = "SimpleDereferer" __type = "crypter" __version = "0.07" __pattern = r'^unmatchable$' __config = [("use_subfolder", "bool", "Save package to subfolder", True), ("subfolder_per_package", "bool", "Create a subfolder for each package", True)] __description = """Simple dereferer plugin""" __license = "GPLv3" __authors = [("Walter Purcaro", "vuolter@gmail.com")] """ Following patterns should be defined by each crypter: LINK_PATTERN: Regex to catch the redirect url in group(1) example: LINK_PATTERN = r'