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:44:05 +0200 |
commit | 0d18ec7e1c54bb5c33e82cd719c2b96cc9840f19 (patch) | |
tree | ad9d86e056bb067aa055672830e0a7283412885e | |
parent | BasePlugin: fixed #208 (diff) | |
download | pyload-0d18ec7e1c54bb5c33e82cd719c2b96cc9840f19.tar.xz |
ExtabitCom: fixed #212
+ cosmetics
(cherry picked from commit 84872b3d1826ae5ce0c0bec2e30b38fbf816006d)
-rw-r--r-- | pyload/plugins/hoster/ExtabitCom.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyload/plugins/hoster/ExtabitCom.py b/pyload/plugins/hoster/ExtabitCom.py index 41a43fab5..f68627b56 100644 --- a/pyload/plugins/hoster/ExtabitCom.py +++ b/pyload/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) |