# -*- coding: utf-8 -*- import re import urllib from pyload.plugin.Crypter import Crypter from pyload.plugin.internal.SimpleHoster import getFileURL, set_cookies class SimpleDereferer(Crypter): __name = "SimpleDereferer" __type = "crypter" __version = "0.11" __pattern = r'^unmatchable$' __config = [("use_subfolder" , "bool", "Save package to subfolder" , True), ("subfolder_per_pack", "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'