summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/KingfilesNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-23 00:50:23 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-23 00:50:23 +0200
commit7b67f68c1636014fe02286da71bdc6c13dc3eeee (patch)
treefce6a94fd3091c6f917acafcc53e71bd08097d5c /module/plugins/hoster/KingfilesNet.py
parent[XFSPAccount] Better HOSTER_URL (diff)
downloadpyload-7b67f68c1636014fe02286da71bdc6c13dc3eeee.tar.xz
Simplify captcha challenge calls
Diffstat (limited to 'module/plugins/hoster/KingfilesNet.py')
-rw-r--r--module/plugins/hoster/KingfilesNet.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/module/plugins/hoster/KingfilesNet.py b/module/plugins/hoster/KingfilesNet.py
index 7211aa378..223241f5a 100644
--- a/module/plugins/hoster/KingfilesNet.py
+++ b/module/plugins/hoster/KingfilesNet.py
@@ -45,13 +45,7 @@ class KingfilesNet(SimpleHoster):
b = self.load(self.pyfile.url, post=post_data, cookies=True, decode=True)
solvemedia = SolveMedia(self)
-
- captcha_key = solvemedia.detect_key()
- if captcha_key is None:
- self.error("SolveMedia key not found")
-
- self.logDebug("captcha_key", captcha_key)
- captcha_challenge, captcha_response = solvemedia.challenge(captcha_key)
+ captcha_challenge, captcha_response = solvemedia.challenge()
# Make the downloadlink appear and load the file
m = re.search(self.RAND_ID_PATTERN, b)