summaryrefslogtreecommitdiffstats
path: root/Plugins/NetloadIn.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-09-03 21:46:13 +0200
committerGravatar spoob <spoob@gmx.de> 2009-09-03 21:46:13 +0200
commit2ed8bf528418d3ad95ab8e63c72e21837ea47ef9 (patch)
tree48cbb963b2c64818b5104cf81d310b10c0e09a19 /Plugins/NetloadIn.py
parentFixed #24 (diff)
downloadpyload-2ed8bf528418d3ad95ab8e63c72e21837ea47ef9.tar.xz
Netload Premium Test
Diffstat (limited to 'Plugins/NetloadIn.py')
-rw-r--r--Plugins/NetloadIn.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Plugins/NetloadIn.py b/Plugins/NetloadIn.py
index 39ea9213e..8bff067de 100644
--- a/Plugins/NetloadIn.py
+++ b/Plugins/NetloadIn.py
@@ -46,6 +46,10 @@ class NetloadIn(Plugin):
raise Exception, "The file was not found on the server."
pyfile.status.filename = self.get_file_name()
+
+ if self.config['premium']:
+ pyfile.status.url = self.parent.url
+ return True
self.download_html2()
@@ -135,4 +139,8 @@ class NetloadIn(Plugin):
return True
def proceed(self, url, location):
+
+ if self.config['premium']:
+ self.req.add_auth(self.config['username'], self.config['password'])
+
self.req.download(url, location, cookies=True)