summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-01-01 20:54:44 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-01-01 20:54:44 +0100
commitd2ea03a068c9cbc43750d672aab7f2574ccfd9b4 (patch)
treebcdce58f631507681a934794d5d4407008658d8f /module/plugins/hoster
parentfixed SerienjunkiesOrg, no more segfault in gui? (diff)
downloadpyload-d2ea03a068c9cbc43750d672aab7f2574ccfd9b4.tar.xz
fixed netload.in premium
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/NetloadIn.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py
index 6941ad033..1f7e7d011 100644
--- a/module/plugins/hoster/NetloadIn.py
+++ b/module/plugins/hoster/NetloadIn.py
@@ -46,7 +46,7 @@ class NetloadIn(Plugin):
pyfile.status.filename = self.get_file_name()
if self.config['premium']:
- self.req.load("http://netload.in/index.php", None, { "txtuser" : self.config['username'], "txtpass" : self.config['password'], "txtcheck" : "login", "txtlogin" : ""})
+ self.req.load("http://netload.in/index.php", None, { "txtuser" : self.config['username'], "txtpass" : self.config['password'], "txtcheck" : "login", "txtlogin" : ""}, cookies=True)
self.logger.info("Netload: Use Premium Account")
pyfile.status.url = self.parent.url
#@TODO: premium??
@@ -72,14 +72,15 @@ class NetloadIn(Plugin):
apiurl = "http://netload.in/share/fileinfos2.php"
src = self.req.load(apiurl, cookies=False, get={"file_id": match.group(1)})
self.api_data = {}
- if src != "unknown file_data":
+ if not src == "unknown file_data":
+ print "apidata:", src
lines = src.split(";")
self.api_data["exists"] = True
self.api_data["fileid"] = lines[0]
self.api_data["filename"] = lines[1]
self.api_data["size"] = lines[2] #@TODO formatting? (ex: '2.07 KB')
self.api_data["status"] = lines[3]
- self.api_data["checksum"] = lines[4].replace("\n", "")
+ self.api_data["checksum"] = lines[4].strip()
else:
self.api_data["exists"] = False