Skip to content

Commit

Permalink
pyLoad 0.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
RaNaN committed Oct 4, 2011
1 parent 5db99cd commit 3e5c3c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion module/gui/connector.py
Expand Up @@ -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
Expand Down
14 changes: 1 addition & 13 deletions module/plugins/hoster/Xdcc.py
Expand Up @@ -215,7 +215,7 @@ def doDownload(self, url):
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
Expand All @@ -224,18 +224,6 @@ def doDownload(self, url):
# 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

Expand Down
4 changes: 2 additions & 2 deletions pyLoadCore.py
Expand Up @@ -18,9 +18,9 @@
@author: sebnapi
@author: RaNaN
@author: mkaay
@version: v0.4.7
@version: v0.4.8
"""
CURRENT_VERSION = '0.4.7'
CURRENT_VERSION = '0.4.8'

import __builtin__

Expand Down

0 comments on commit 3e5c3c4

Please sign in to comment.