diff options
author | Stefano <l.stickell@yahoo.it> | 2013-08-02 21:28:55 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-08-02 21:28:55 +0200 |
commit | 84872b3d1826ae5ce0c0bec2e30b38fbf816006d (patch) | |
tree | 1e8e1f496083ac38438567a1394a12ad72246583 /module/plugins/hoster/ExtabitCom.py | |
parent | BasePlugin: fixed #209 (diff) | |
download | pyload-84872b3d1826ae5ce0c0bec2e30b38fbf816006d.tar.xz |
ExtabitCom: fixed #212
+ cosmetics
Diffstat (limited to 'module/plugins/hoster/ExtabitCom.py')
-rw-r--r-- | module/plugins/hoster/ExtabitCom.py | 7 |
1 files changed, 4 insertions, 3 deletions
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<ID>\w+)" - __version__ = "0.3" + __version__ = "0.4" __description__ = """Extabit.com""" __author_name__ = ("zoidberg") @@ -36,7 +36,7 @@ class ExtabitCom(SimpleHoster): FILE_OFFLINE_PATTERN = r'<h1>File not found</h1>' 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) |