From 5f81638b63ba4df560f07bd5be25f8f37e343c18 Mon Sep 17 00:00:00 2001 From: Jeix Date: Sat, 20 Nov 2010 18:50:39 +0100 Subject: sharecx fix 3 --- module/plugins/hoster/ShareCx.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/ShareCx.py') diff --git a/module/plugins/hoster/ShareCx.py b/module/plugins/hoster/ShareCx.py index d7b1888e8..f3f025c0b 100644 --- a/module/plugins/hoster/ShareCx.py +++ b/module/plugins/hoster/ShareCx.py @@ -111,7 +111,7 @@ class ShareCx(Hoster): referer = re.search(r'name="referer" value="(.*?)"', self.html).group(1) method_free = re.search(r'name="method_free" value="(.*?)"', self.html).group(1) method_premium = re.search(r'name="method_premium" value="(.*?)"', self.html).group(1) - down_script = re.search(r'name="down_script" value="(.*?)"', self.html).group(1) + down_script = re.search(r'name="down_script" value="(.*?)"', self.html) data = { "op" : op, @@ -120,9 +120,12 @@ class ShareCx(Hoster): "referer" : referer, "method_free" : method_free, "method_premium" : method_premium, - "down_script" : down_script + #"down_script" : down_script } + if down_script: + data["down_script"] = down_script.group(1) + if '/captchas/' in self.html: captcha_url = re.search(r'(http://(?:[\w\d]+\.)?.*?/captchas/.*?)', self.html).group(1) captcha = self.decryptCaptcha(captcha_url) -- cgit v1.2.3