summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-03-17 15:36:09 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-03-17 15:36:09 +0100
commit86619293daaaf27c90259721bdfc9e4499570731 (patch)
treedb83edc9079d5d4f57d71fe18cc33d795cb6cbf5 /module
parentRapidgatorNet: Fixed bug #46 (diff)
downloadpyload-86619293daaaf27c90259721bdfc9e4499570731.tar.xz
RyushareCom: Added ability to detect free download limit reached.
http://forum.pyload.org/viewtopic.php?p=8328#p8328
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/RyushareCom.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/module/plugins/hoster/RyushareCom.py b/module/plugins/hoster/RyushareCom.py
index 54abd9103..19f17b531 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.06"
+ __version__ = "0.07"
__description__ = """ryushare.com hoster plugin"""
__author_name__ = ("zoidberg", "stickell")
__author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it")
@@ -22,6 +22,7 @@ class RyushareCom(XFileSharingPro):
def setup(self):
self.resumeDownload = self.multiDL = self.premium
+ # Up to 3 chunks allowed in free downloads. Unknown for premium
self.chunkLimit = 3
def getDownloadLink(self):
@@ -36,9 +37,12 @@ class RyushareCom(XFileSharingPro):
for i in xrange(10):
self.logInfo('Attempt to detect direct link #%d' % i)
- # wait 60 seconds
- m = re.search(self.WAIT_PATTERN, self.html)
- self.setWait(to_seconds(m.groupdict()))
+ # Wait
+ if 'You have reached the download-limit!!!' in self.html:
+ self.setWait(3600, True)
+ else:
+ m = re.search(self.WAIT_PATTERN, self.html)
+ self.setWait(to_seconds(m.groupdict()))
self.wait()
self.html = self.load(self.pyfile.url, post = inputs)