From c3438b39d7497178300f4518692ef212abd5c614 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 13 Oct 2013 19:38:44 +0200 Subject: Mark dead crypters as DeadCrypter --- module/plugins/crypter/MBLinkInfo.py | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'module/plugins/crypter/MBLinkInfo.py') diff --git a/module/plugins/crypter/MBLinkInfo.py b/module/plugins/crypter/MBLinkInfo.py index e266c7722..434819d07 100644 --- a/module/plugins/crypter/MBLinkInfo.py +++ b/module/plugins/crypter/MBLinkInfo.py @@ -1,27 +1,13 @@ # -*- coding: utf-8 -*- -import re +from module.plugins.internal.DeadCrypter import DeadCrypter -from module.plugins.Crypter import Crypter - -class MBLinkInfo(Crypter): +class MBLinkInfo(DeadCrypter): __name__ = "MBLinkInfo" __type__ = "container" __pattern__ = r"http://(?:www\.)?mblink\.info/?\?id=(\d+)" - __version__ = "0.02" + __version__ = "0.03" __description__ = """MBLink.Info Container Plugin""" __author_name__ = ("Gummibaer", "stickell") __author_mail__ = ("Gummibaer@wiki-bierkiste.de", "l.stickell@yahoo.it") - - URL_PATTERN = r'' - - def decrypt(self, pyfile): - src = self.load(pyfile.url) - found = re.search(self.URL_PATTERN, src) - if found: - link = found.group(1) - self.logDebug("Redirected to " + link) - self.core.files.addLinks([link], self.pyfile.package().id) - else: - self.fail('Unable to detect valid link') -- cgit v1.2.3