diff options
author | Stefano <l.stickell@yahoo.it> | 2013-03-22 11:36:17 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-03-22 11:36:17 +0100 |
commit | 54575b294a788b37ead28338eb73c134981f28e6 (patch) | |
tree | b0eababb716980063dd9106ec90b756d9b507717 /module | |
parent | FilebeerInfo: Dead hoster (diff) | |
download | pyload-54575b294a788b37ead28338eb73c134981f28e6.tar.xz |
RyushareCom: added pattern to support premium
http://forum.pyload.org/viewtopic.php?p=8379#p8379
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/RyushareCom.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/RyushareCom.py b/module/plugins/hoster/RyushareCom.py index 19f17b531..59953274f 100644 --- a/module/plugins/hoster/RyushareCom.py +++ b/module/plugins/hoster/RyushareCom.py @@ -11,7 +11,7 @@ class RyushareCom(XFileSharingPro): __name__ = "RyushareCom" __type__ = "hoster" __pattern__ = r"http://(?:\w*\.)*?ryushare.com/\w{11,}" - __version__ = "0.07" + __version__ = "0.08" __description__ = """ryushare.com hoster plugin""" __author_name__ = ("zoidberg", "stickell") __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") @@ -19,6 +19,7 @@ class RyushareCom(XFileSharingPro): HOSTER_NAME = "ryushare.com" WAIT_PATTERN = r'(?:You have to|Please) wait (?:(?P<min>\d+) minutes, )?(?:<span id="[^"]+">)?(?P<sec>\d+)(?:</span>)? seconds' + DIRECT_LINK_PATTERN = r'<a href="([^"]+)">Click here to download</a>' def setup(self): self.resumeDownload = self.multiDL = self.premium @@ -47,7 +48,7 @@ class RyushareCom(XFileSharingPro): self.html = self.load(self.pyfile.url, post = inputs) if 'Click here to download' in self.html: - m = re.search(r'<a href="([^"]+)">Click here to download</a>', self.html) + m = re.search(self.DIRECT_LINK_PATTERN, self.html) return m.group(1) self.parseError('No direct link within 10 retries') |