diff options
| author | 2013-03-16 18:02:20 +0100 | |
|---|---|---|
| committer | 2013-03-16 18:02:20 +0100 | |
| commit | 5091e58ed0b93fa7a745ff3a5501b0615eed01b6 (patch) | |
| tree | 8817775b953b654c9b5d8d698323f36746f2d183 /module | |
| parent | RyushareCom: Fixed free download (diff) | |
| download | pyload-5091e58ed0b93fa7a745ff3a5501b0615eed01b6.tar.xz | |
RyushareCom: Improved regex
http://forum.pyload.org/viewtopic.php?p=8317#p8317
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/hoster/RyushareCom.py | 4 | 
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() | 
