From f8fa74caeac0f824e2880a0c2a75340f048a6c2d Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Sun, 4 Mar 2012 08:31:48 +0100 Subject: share-online.biz (#550) partial fix, closed #551 --- module/plugins/hoster/TurbobitNet.py | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'module/plugins/hoster/TurbobitNet.py') diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py index 91cfd5145..95fcae7f2 100644 --- a/module/plugins/hoster/TurbobitNet.py +++ b/module/plugins/hoster/TurbobitNet.py @@ -26,28 +26,28 @@ from pycurl import HTTPHEADER class TurbobitNet(SimpleHoster): __name__ = "TurbobitNet" __type__ = "hoster" - __pattern__ = r"http://(?:\w*\.)?turbobit.net/(?P\w+).*" - __version__ = "0.02" + __pattern__ = r"http://(?:\w*\.)?turbobit.net/(?:download/free/)?(?P\w+).*" + __version__ = "0.03" __description__ = """Turbobit.net plugin""" __author_name__ = ("zoidberg") __author_mail__ = ("zoidberg@mujmail.cz") - FILE_SIZE_PATTERN = r"\s*\((?P[^\)]+)\)\s*" - FILE_NAME_PATTERN = r'/download/redirect/[^"\']+)' - LIMIT_WAIT_PATTERN = r'
\s*.*?(\d+) seconds' + LIMIT_WAIT_PATTERN = r'
\s*.*?(\d+) seconds' + CAPTCHA_SRC_PATTERN = r'Captcha" in self.html: @@ -77,7 +87,7 @@ class TurbobitNet(SimpleHoster): self.setWait(60, False) self.wait() - self.html = self.load("http://turbobit.net/download/getLinkAfterTimeout/" + self.file_info['ID']) + self.html = self.load("http://turbobit.net/download/getLinkTimeout/" + self.file_info['ID']) self.downloadFile() def handlePremium(self): -- cgit v1.2.3