From 3e5c3c4b820f7c7cb7104c186f5c31d388e4d1b4 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 4 Oct 2011 14:20:03 +0200 Subject: pyLoad 0.4.8 --- module/gui/connector.py | 2 +- module/plugins/hoster/Xdcc.py | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) (limited to 'module') diff --git a/module/gui/connector.py b/module/gui/connector.py index 74d791776..129d26a50 100644 --- a/module/gui/connector.py +++ b/module/gui/connector.py @@ -16,7 +16,7 @@ @author: mkaay """ -SERVER_VERSION = "0.4.7" +SERVER_VERSION = "0.4.8" from time import sleep from uuid import uuid4 as uuid diff --git a/module/plugins/hoster/Xdcc.py b/module/plugins/hoster/Xdcc.py index 849748249..7d83b050c 100644 --- a/module/plugins/hoster/Xdcc.py +++ b/module/plugins/hoster/Xdcc.py @@ -215,7 +215,7 @@ class Xdcc(Hoster): self.log.info("XDCC: Downloading %s from %s:%d" % (packname, ip, port)) self.pyfile.setStatus("downloading") - newname = self.req.download(ip, port, filename, self.pyfile.progress.setValue) + newname = self.req.download(ip, port, filename, self.pyfile.setProgress) if newname and newname != filename: self.log.info("%(name)s saved as %(newname)s" % {"name": self.pyfile.name, "newname": newname}) filename = newname @@ -224,18 +224,6 @@ class Xdcc(Hoster): # sock.send("QUIT :byebye\r\n") sock.close() - if self.core.config["permission"]["change_file"]: - chmod(filename, int(self.core.config["permission"]["file"],8)) - - if self.core.config["permission"]["change_dl"] and os.name != "nt": - try: - uid = getpwnam(self.config["permission"]["user"])[2] - gid = getgrnam(self.config["permission"]["group"])[2] - - chown(filename, uid, gid) - except Exception,e: - self.log.warning(_("Setting User and Group failed: %s") % str(e)) - self.lastDownload = filename return self.lastDownload -- cgit v1.2.3