From 2bdb05b165f2ebc2fd416165aa15691fa7ebe088 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 27 Sep 2014 18:09:35 +0200 Subject: [KingfilesNet] Better SOLVEMEDIA_PATTERN --- module/plugins/hoster/KingfilesNet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module') diff --git a/module/plugins/hoster/KingfilesNet.py b/module/plugins/hoster/KingfilesNet.py index 1a9e9e81d..f0e51645a 100644 --- a/module/plugins/hoster/KingfilesNet.py +++ b/module/plugins/hoster/KingfilesNet.py @@ -24,10 +24,10 @@ class KingfilesNet(SimpleHoster): OFFLINE_PATTERN = r'>(File Not Found

|File Not Found)' FILE_ID_PATTERN = r'' - RANDOM_PATTERN = r'type=\"hidden\" name=\"rand\" value=\"(.+)\">' + RAND_ID_PATTERN = r'type=\"hidden\" name=\"rand\" value=\"(.+)\">' LINK_PATTERN = r'var download_url = \'(.+)\';' - SOLVEMEDIA_PATTERN = r'http://api.solvemedia.com/papi/challenge.script\?k=(.+)\">' + SOLVEMEDIA_PATTERN = r'http://api\.solvemedia\.com/papi/challenge\.script\?k=(.+)\">' def setup(self): @@ -61,7 +61,7 @@ class KingfilesNet(SimpleHoster): captcha_challenge, captcha_response = solvemedia.challenge(captcha_key) # Make the downloadlink appear and load the file - m = re.search(self.RANDOM_PATTERN, b) + m = re.search(self.RAND_ID_PATTERN, b) if m is None: self.parseError("Random key not found") -- cgit v1.2.3