summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BasketbuildCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/BasketbuildCom.py')
-rw-r--r--module/plugins/hoster/BasketbuildCom.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/module/plugins/hoster/BasketbuildCom.py b/module/plugins/hoster/BasketbuildCom.py
index 89e4d39f9..9bbd0ea60 100644
--- a/module/plugins/hoster/BasketbuildCom.py
+++ b/module/plugins/hoster/BasketbuildCom.py
@@ -12,12 +12,13 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class BasketbuildCom(SimpleHoster):
__name__ = "BasketbuildCom"
__type__ = "hoster"
- __version__ = "0.03"
+ __version__ = "0.04"
+ __status__ = "testing"
__pattern__ = r'https?://(?:www\.)?(?:\w\.)?basketbuild\.com/filedl/.+'
__config__ = [("use_premium", "bool", "Use premium account if available", True)]
- __description__ = """basketbuild.com hoster plugin"""
+ __description__ = """Basketbuild.com hoster plugin"""
__license__ = "GPLv3"
__authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
@@ -29,11 +30,11 @@ class BasketbuildCom(SimpleHoster):
def setup(self):
self.multiDL = True
- self.resumeDownload = True
- self.chunkLimit = 1
+ self.resume_download = True
+ self.chunk_limit = 1
- def handleFree(self, pyfile):
+ def handle_free(self, pyfile):
try:
link1 = re.search(r'href="(.+dlgate/.+)"', self.html).group(1)
self.html = self.load(link1)
@@ -42,15 +43,15 @@ class BasketbuildCom(SimpleHoster):
self.error(_("Hop #1 not found"))
else:
- self.logDebug("Next hop: %s" % link1)
+ self.log_debug("Next hop: %s" % link1)
try:
wait = re.search(r'var sec = (\d+)', self.html).group(1)
- self.logDebug("Wait %s seconds" % wait)
+ self.log_debug("Wait %s seconds" % wait)
self.wait(wait)
except AttributeError:
- self.logDebug("No wait time found")
+ self.log_debug("No wait time found")
try:
self.link = re.search(r'id="dlLink">\s*<a href="(.+?)"', self.html).group(1)