summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-28 01:17:27 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-28 01:17:27 +0100
commit26ce6814c61781216d1ff1df61e4144274e3aa88 (patch)
treea889e8f3943e51d18c4876714deedda03223f260 /module
parent[ExtractArchive] Fix typo (diff)
downloadpyload-26ce6814c61781216d1ff1df61e4144274e3aa88.tar.xz
[NetloadIn] Fix missing RECAPTCHA_KEY
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/NetloadIn.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py
index 44f45696f..3efbdce23 100644
--- a/module/plugins/hoster/NetloadIn.py
+++ b/module/plugins/hoster/NetloadIn.py
@@ -23,7 +23,7 @@ def getInfo(urls):
for url in chunk:
match = id_regex.search(url)
if match:
- ids = ids + match.group(1) + ";"
+ ids = ids + match.group('ID') + ";"
api = getURL(apiurl,
get={'auth' : "Zf9SnQh9WiReEsb18akjvQGqT0I830e8",
@@ -62,9 +62,9 @@ def getInfo(urls):
class NetloadIn(Hoster):
__name__ = "NetloadIn"
__type__ = "hoster"
- __version__ = "0.48"
+ __version__ = "0.49"
- __pattern__ = r'https?://(?:[^/]*\.)?netload\.in/(?:datei(.*?)(?:\.htm|/)|index\.php?id=10&file_id=)'
+ __pattern__ = r'https?://(?:www\.)?netload\.in/(?P<PATH>datei|index\.php\?id=10&file_id=)(?P<ID>\w+)'
__description__ = """Netload.in hoster plugin"""
__license__ = "GPLv3"
@@ -73,6 +73,9 @@ class NetloadIn(Hoster):
("Gregy", "gregy@gregy.cz")]
+ RECAPTCHA_KEY = "6LcLJMQSAAAAAJzquPUPKNovIhbK6LpSqCjYrsR1"
+
+
def setup(self):
self.multiDL = self.resumeDownload = self.premium
@@ -118,7 +121,7 @@ class NetloadIn(Hoster):
if match:
#normalize url
- self.url = 'http://www.netload.in/datei%s.htm' % match.group(1)
+ self.url = 'http://www.netload.in/datei%s.htm' % match.group('ID')
self.logDebug("URL: %s" % self.url)
else:
self.api_data = False
@@ -126,7 +129,7 @@ class NetloadIn(Hoster):
apiurl = "http://api.netload.in/info.php"
html = self.load(apiurl, cookies=False,
- get={"file_id": match.group(1), "auth": "Zf9SnQh9WiReEsb18akjvQGqT0I830e8", "bz": "1",
+ get={"file_id": match.group('ID'), "auth": "Zf9SnQh9WiReEsb18akjvQGqT0I830e8", "bz": "1",
"md5": "1"}, decode=True).strip()
if not html and n <= 3:
self.setWait(2)
@@ -235,7 +238,7 @@ class NetloadIn(Hoster):
recaptcha = ReCaptcha(self)
for _i in xrange(5):
- response, challenge = recaptcha.challenge()
+ response, challenge = recaptcha.challenge(self.RECAPTCHA_KEY)
response_page = self.load("http://www.netload.in/index.php?id=10",
post={'captcha_check' : '1',