# -*- coding: utf-8 -*- from pyload.plugins.internal.SimpleCrypter import SimpleCrypter class XFSCrypter(SimpleCrypter): __name__ = "XFSCrypter" __type__ = "crypter" __version__ = "0.04" __pattern__ = r'^unmatchable$' __description__ = """XFileSharing decrypter plugin""" __license__ = "GPLv3" __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] HOSTER_DOMAIN = None HOSTER_NAME = None URL_REPLACEMENTS = [(r'&?per_page=\d+', ""), (r'[?/&]+$', ""), (r'(.+/[^?]+)$', r'\1?'), (r'$', r'&per_page=10000')] COOKIES = [(HOSTER_DOMAIN, "lang", "english")] LINK_PATTERN = r'<(?:td|TD).*?>\s*.+?(?:)?\s*' NAME_PATTERN = r'<[tT]itle>.*?\: (?P.+) folder' OFFLINE_PATTERN = r'>\s*\w+ (Not Found|file (was|has been) removed)' TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)'