From a909b0ab66cc9f2ba1435a4ed1293c66050a7507 Mon Sep 17 00:00:00 2001
From: stefanos <antispam-github-com@trash-mail.com>
Date: Mon, 5 May 2014 14:19:53 +0200
Subject: Update ShareonlineBiz Merges #607

---
 module/plugins/hoster/ShareonlineBiz.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'module')

diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index f53834231..d3aeafc84 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -39,7 +39,7 @@ class ShareonlineBiz(Hoster):
     __name__ = "ShareonlineBiz"
     __type__ = "hoster"
     __pattern__ = r'https?://(?:www\.)?(share-online\.biz|egoshare\.com)/(download.php\?id=|dl/)(?P<ID>\w+)'
-    __version__ = "0.38"
+    __version__ = "0.39"
     __description__ = """Shareonline.biz hoster plugin"""
     __author_name__ = ("spoob", "mkaay", "zoidberg", "Walter Purcaro")
     __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de", "zoidberg@mujmail.cz", "vuolter@gmail.com")
@@ -132,9 +132,13 @@ class ShareonlineBiz(Hoster):
             "fail": re.compile(r"<title>Share-Online")
         })
         if check == "cookie":
+            self.invalidCaptcha()
             self.retry(5, 60, "Cookie failure")
         elif check == "fail":
+            self.invalidCaptcha()
             self.retry(5, 5 * 60, "Download failed")
+        else:
+            self.correctCaptcha()
 
     def handlePremium(self):  # should be working better loading (account) api internally
         self.account.getAccountInfo(self.user, True)
-- 
cgit v1.2.3