diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-09-27 18:09:35 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-09-27 18:09:35 +0200 |
commit | 2bdb05b165f2ebc2fd416165aa15691fa7ebe088 (patch) | |
tree | 641f186cf92e2567ea731422ecbb419d5e8f9029 /module/plugins/hoster | |
parent | New hoster KingfilesNet (diff) | |
download | pyload-2bdb05b165f2ebc2fd416165aa15691fa7ebe088.tar.xz |
[KingfilesNet] Better SOLVEMEDIA_PATTERN
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/KingfilesNet.py | 6 |
1 files changed, 3 insertions, 3 deletions
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</b><br><br>|File Not Found</h2>)' FILE_ID_PATTERN = r'<input type=\"hidden\" name=\"id\" value=\"(.+)\">' - 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") |