summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RyushareCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-03-16 18:02:20 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-03-16 18:02:20 +0100
commit5091e58ed0b93fa7a745ff3a5501b0615eed01b6 (patch)
tree8817775b953b654c9b5d8d698323f36746f2d183 /module/plugins/hoster/RyushareCom.py
parentRyushareCom: Fixed free download (diff)
downloadpyload-5091e58ed0b93fa7a745ff3a5501b0615eed01b6.tar.xz
RyushareCom: Improved regex
http://forum.pyload.org/viewtopic.php?p=8317#p8317
Diffstat (limited to 'module/plugins/hoster/RyushareCom.py')
-rw-r--r--module/plugins/hoster/RyushareCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/RyushareCom.py b/module/plugins/hoster/RyushareCom.py
index 9ca8dc99e..3cfeb12d4 100644
--- a/module/plugins/hoster/RyushareCom.py
+++ b/module/plugins/hoster/RyushareCom.py
@@ -6,7 +6,7 @@ class RyushareCom(XFileSharingPro):
__name__ = "RyushareCom"
__type__ = "hoster"
__pattern__ = r"http://(?:\w*\.)*?ryushare.com/\w{11,}"
- __version__ = "0.04"
+ __version__ = "0.05"
__description__ = """ryushare.com hoster plugin"""
__author_name__ = ("zoidberg")
__author_mail__ = ("zoidberg@mujmail.cz")
@@ -30,7 +30,7 @@ class RyushareCom(XFileSharingPro):
self.logInfo('Attempt to detect direct link #%d' % i)
# wait 60 seconds
- seconds = re.search(r'Please wait <span id="[^"]+">(?P<sec>\d+)</span> seconds</span> or', self.html).group('sec')
+ seconds = re.search(r'(?:You have to|Please) wait (?:<span id="[^"]+">)?(?P<sec>\d+)(?:</span>)? seconds', self.html).group('sec')
self.setWait(seconds)
self.wait()