From 84872b3d1826ae5ce0c0bec2e30b38fbf816006d Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 2 Aug 2013 21:28:55 +0200 Subject: ExtabitCom: fixed #212 + cosmetics --- module/plugins/hoster/ExtabitCom.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/ExtabitCom.py') diff --git a/module/plugins/hoster/ExtabitCom.py b/module/plugins/hoster/ExtabitCom.py index 41a43fab5..f68627b56 100644 --- a/module/plugins/hoster/ExtabitCom.py +++ b/module/plugins/hoster/ExtabitCom.py @@ -27,7 +27,7 @@ class ExtabitCom(SimpleHoster): __name__ = "ExtabitCom" __type__ = "hoster" __pattern__ = r"http://(\w+\.)*extabit\.com/(file|go|fid)/(?P\w+)" - __version__ = "0.3" + __version__ = "0.4" __description__ = """Extabit.com""" __author_name__ = ("zoidberg") @@ -36,7 +36,7 @@ class ExtabitCom(SimpleHoster): FILE_OFFLINE_PATTERN = r'

File not found

' TEMP_OFFLINE_PATTERN = r">(File is temporary unavailable|No download mirror)<" - DOWNLOAD_LINK_PATTERN = r'"(http://guest\d+\.extabit\.com/[a-z0-9]+/.*?)"' + DOWNLOAD_LINK_PATTERN = r'[\'"](http://guest\d+\.extabit\.com/[a-z0-9]+/.*?)[\'"]' def handleFree(self): if r">Only premium users can download this file" in self.html: @@ -73,7 +73,8 @@ class ExtabitCom(SimpleHoster): else: self.parseError('Captcha') - if not "href" in response: self.parseError('JSON') + if not "href" in response: + self.parseError('JSON') self.html = self.load("http://extabit.com/file/%s%s" % (fileID, response['href'])) m = re.search(self.DOWNLOAD_LINK_PATTERN, self.html) -- cgit v1.2.3