summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FreakshareCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/FreakshareCom.py')
-rw-r--r--module/plugins/hoster/FreakshareCom.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/module/plugins/hoster/FreakshareCom.py b/module/plugins/hoster/FreakshareCom.py
index f11607591..9a11f933d 100644
--- a/module/plugins/hoster/FreakshareCom.py
+++ b/module/plugins/hoster/FreakshareCom.py
@@ -2,15 +2,15 @@
import re
-from pyload.plugin.Hoster import Hoster
-from pyload.plugin.hoster.UnrestrictLi import secondsToMidnight
-from pyload.plugin.internal.captcha import ReCaptcha
+from module.plugins.Hoster import Hoster
+from module.plugins.internal.CaptchaService import ReCaptcha
+from module.plugins.internal.SimpleHoster import secondsToMidnight
class FreakshareCom(Hoster):
__name__ = "FreakshareCom"
__type__ = "hoster"
- __version__ = "0.39"
+ __version__ = "0.40"
__pattern__ = r'http://(?:www\.)?freakshare\.(net|com)/files/\S*?/'
@@ -43,23 +43,27 @@ class FreakshareCom(Hoster):
self.download(pyfile.url, post=self.req_opts)
- check = self.checkDownload({"bad": "bad try",
- "paralell": "> Sorry, you cant download more then 1 files at time. <",
- "empty": "Warning: Unknown: Filename cannot be empty",
- "wrong_captcha": "Wrong Captcha!",
+ check = self.checkDownload({"bad" : "bad try",
+ "paralell" : "> Sorry, you cant download more then 1 files at time. <",
+ "empty" : "Warning: Unknown: Filename cannot be empty",
+ "wrong_captcha" : "Wrong Captcha!",
"downloadserver": "No Downloadserver. Please try again later!"})
if check == "bad":
self.fail(_("Bad Try"))
+
elif check == "paralell":
self.setWait(300, True)
self.wait()
self.retry()
+
elif check == "empty":
self.fail(_("File not downloadable"))
+
elif check == "wrong_captcha":
self.invalidCaptcha()
self.retry()
+
elif check == "downloadserver":
self.retry(5, 15 * 60, _("No Download server"))