From 8e7d14bae4d3c836f029a1235eb227380acc3f75 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 16 Feb 2015 21:59:10 +0100 Subject: Fix plugins to work on 0.4.10 --- module/plugins/hoster/BasketbuildCom.py | 61 --------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 module/plugins/hoster/BasketbuildCom.py (limited to 'module/plugins/hoster/BasketbuildCom.py') diff --git a/module/plugins/hoster/BasketbuildCom.py b/module/plugins/hoster/BasketbuildCom.py deleted file mode 100644 index db482c7c5..000000000 --- a/module/plugins/hoster/BasketbuildCom.py +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf-8 -* -# -# Test links: -# https://s.basketbuild.com/filedl/devs?dev=pacman&dl=pacman/falcon/RC-3/pac_falcon-RC-3-20141103.zip -# https://s.basketbuild.com/filedl/gapps?dl=gapps-gb-20110828-signed.zip - -import re - -from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo - - -class BasketbuildCom(SimpleHoster): - __name__ = "BasketbuildCom" - __type__ = "hoster" - __version__ = "0.03" - - __pattern__ = r'https?://(?:www\.)?(?:\w\.)?basketbuild\.com/filedl/.+' - - __description__ = """basketbuild.com hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")] - - - NAME_PATTERN = r'File Name: (?P.+?)
' - SIZE_PATTERN = r'File Size: (?P[\d.,]+) (?P[\w^_]+)' - OFFLINE_PATTERN = r'404 - Page Not Found' - - - def setup(self): - self.multiDL = True - self.resumeDownload = True - self.chunkLimit = 1 - - - def handleFree(self, pyfile): - try: - link1 = re.search(r'href="(.+dlgate/.+)"', self.html).group(1) - self.html = self.load(link1) - - except AttributeError: - self.error(_("Hop #1 not found")) - - else: - self.logDebug("Next hop: %s" % link1) - - try: - wait = re.search(r'var sec = (\d+)', self.html).group(1) - self.logDebug("Wait %s seconds" % wait) - self.wait(wait) - - except AttributeError: - self.logDebug("No wait time found") - - try: - self.link = re.search(r'id="dlLink">\s*