From 1793e361271942f5468eefc383f5f4c371e92fb9 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 11 Dec 2015 22:30:10 +0000 Subject: [PATCH] [Core] Fix use of parent class parameter --- deluge/httpdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/httpdownloader.py b/deluge/httpdownloader.py index 08a253db5..3b2249c10 100644 --- a/deluge/httpdownloader.py +++ b/deluge/httpdownloader.py @@ -71,7 +71,7 @@ class HTTPDownloader(client.HTTPDownloader): if "content-disposition" in headers and not self.force_filename: new_file_name = str(headers["content-disposition"][0]).split(";")[1].split("=")[1] new_file_name = sanitise_filename(new_file_name) - new_file_name = os.path.join(os.path.split(self.fileName)[0], new_file_name) + new_file_name = os.path.join(os.path.split(self.value)[0], new_file_name) count = 1 fileroot = os.path.splitext(new_file_name)[0]