diff options
-rw-r--r-- | module/plugins/internal/XFSPCrypter.py | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/module/plugins/internal/XFSPCrypter.py b/module/plugins/internal/XFSPCrypter.py index 4c5fff4f3..372657d2d 100644 --- a/module/plugins/internal/XFSPCrypter.py +++ b/module/plugins/internal/XFSPCrypter.py @@ -6,7 +6,7 @@ from module.plugins.internal.SimpleCrypter import SimpleCrypter class XFSPCrypter(SimpleCrypter): __name__ = "XFSPCrypter" __type__ = "crypter" - __version__ = "0.01" + __version__ = "0.02" __pattern__ = None @@ -21,19 +21,8 @@ class XFSPCrypter(SimpleCrypter): COOKIES = [(HOSTER_NAME, "lang", "english")] - LINK_PATTERN = None + LINK_PATTERN = r'<(?:td|TD) [^>]*>\s*<a href="(.+?)"[^>]*>.+?(?:</a>)?\s*</(?:td|TD)>' TITLE_PATTERN = r'<[tT]itle>.*?\: (.+) folder</[tT]itle>' OFFLINE_PATTERN = r'>\s*\w+ (Not Found|file (was|has been) removed)' TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)' - - - def prepare(self): - if not self.HOSTER_NAME: - self.fail("Missing HOSTER_NAME") - - if not self.LINK_PATTERN: - pattern = r'<a href="(.+?)" target="_blank">.+?(?:</a>)?\s*</(?:td|TD)>' - self.LINK_PATTERN = pattern % self.HOSTER_NAME - - super(XFSPCrypter, self).prepare() |