From 7f239b41cb29ee95c878f78a6e9cacd55f301a8d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 13 Dec 2013 11:20:19 +0100 Subject: Some hosters marked as dead Merged #375 --- module/plugins/hoster/FileApeCom.py | 56 +++---------------------------------- 1 file changed, 4 insertions(+), 52 deletions(-) (limited to 'module/plugins/hoster/FileApeCom.py') diff --git a/module/plugins/hoster/FileApeCom.py b/module/plugins/hoster/FileApeCom.py index f07fbfc8a..2a5daf16a 100644 --- a/module/plugins/hoster/FileApeCom.py +++ b/module/plugins/hoster/FileApeCom.py @@ -1,64 +1,16 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import re +from module.plugins.internal.DeadHoster import DeadHoster, create_getInfo -from module.plugins.Hoster import Hoster - -class FileApeCom(Hoster): +class FileApeCom(DeadHoster): __name__ = "FileApeCom" __type__ = "hoster" __pattern__ = r"http://(www\.)?fileape\.com/(index\.php\?act=download\&id=|dl/)\w+" - __version__ = "0.11" + __version__ = "0.12" __description__ = """FileApe Download Hoster""" __author_name__ = ("espes") - def setup(self): - self.multiDL = False - - def process(self, pyfile): - self.pyfile = pyfile - - self.html = self.load(self.pyfile.url) - - if "This file is either temporarily unavailable or does not exist" in self.html: - self.offline() - - self.html = self.load(self.pyfile.url + "&g=1") - - continueMatch = re.search(r"window\.location = '(http://.*?)'", self.html) - if not continueMatch: - continueMatch = re.search(r"'(http://fileape\.com/\?act=download&t=[A-Za-z0-9_-]+)'", self.html) - if continueMatch: - continuePage = continueMatch.group(1) - else: - self.fail("Plugin Defect") - - wait = 60 - waitMatch = re.search( - "id=\"waitnumber\" style=\"font-size:2em; text-align:center; width:33px; height:33px;\">(\\d+)", - self.html) - if waitMatch: - wait = int(waitMatch.group(1)) - self.setWait(wait + 3) - self.wait() - - self.html = self.load(continuePage) - linkMatch = re.search(r"