summaryrefslogtreecommitdiffstats
path: root/Plugins/NetloadIn.py
diff options
context:
space:
mode:
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)