From 5091e58ed0b93fa7a745ff3a5501b0615eed01b6 Mon Sep 17 00:00:00 2001 From: Stefano Date: Sat, 16 Mar 2013 18:02:20 +0100 Subject: RyushareCom: Improved regex http://forum.pyload.org/viewtopic.php?p=8317#p8317 --- module/plugins/hoster/RyushareCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/RyushareCom.py') 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 (?P\d+) seconds or', self.html).group('sec') + seconds = re.search(r'(?:You have to|Please) wait (?:)?(?P\d+)(?:)? seconds', self.html).group('sec') self.setWait(seconds) self.wait() -- cgit v1.2.3