summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-08-23 11:32:20 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-08-23 11:32:20 +0200
commitf1124cc089541a3c275b4c847507c1c4bd9ebd8c (patch)
tree3083cdc9dca0291fa25d93bfc331b55a42d0f332
parentRyushare: added SolveMedia captcha and fixed waiting pattern (diff)
downloadpyload-f1124cc089541a3c275b4c847507c1c4bd9ebd8c.tar.xz
Ryushare: code cleanu+ test link
-rw-r--r--module/plugins/hoster/RyushareCom.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/hoster/RyushareCom.py b/module/plugins/hoster/RyushareCom.py
index 79fa0672e..b53614e78 100644
--- a/module/plugins/hoster/RyushareCom.py
+++ b/module/plugins/hoster/RyushareCom.py
@@ -1,7 +1,12 @@
# -*- coding: utf-8 -*-
+
+# Test links (random.bin):
+# http://ryushare.com/v3u21arv593q/random.bin
+
+import re
+
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
from module.plugins.internal.CaptchaService import SolveMedia
-import re
class RyushareCom(XFileSharingPro):
@@ -46,7 +51,7 @@ class RyushareCom(XFileSharingPro):
if match:
m = match.groupdict(0)
waittime = int(m["hour"])*60*60 + int(m['min']) * 60 + int(m['sec'])
- self.setWait(waittime,True)
+ self.setWait(waittime, True)
retry = True
self.wait()
@@ -69,7 +74,7 @@ class RyushareCom(XFileSharingPro):
self.html = self.load(self.pyfile.url, post = inputs)
if "WRONG CAPTCHA" in self.html:
self.invalidCaptcha()
- self.logDebug("Invalid Captcha")
+ self.logInfo("Invalid Captcha")
else:
self.correctCaptcha()
break