summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-31 21:09:40 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-31 21:09:40 +0200
commit26961676bf2bada721a5d7e69dadac00820a0cfa (patch)
tree09ec684fed2285925e965cc8a31badbaddc96dd4 /module/plugins/Plugin.py
parentcleanup (diff)
downloadpyload-26961676bf2bada721a5d7e69dadac00820a0cfa.tar.xz
encoding fix, locale cleanup
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index ed9ac8bca..7790a0801 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -252,12 +252,12 @@ class Plugin(object):
download_folder = self.config['general']['download_folder']
- location = join(download_folder, self.pyfile.package().folder.decode(sys.getfilesystemencoding()).replace(":", "")) # remove : for win compability
+ location = join(download_folder.encode(sys.getfilesystemencoding(), "replace"), self.pyfile.package().folder.replace(":", "").encode(sys.getfilesystemencoding(), "replace")) # remove : for win compability
if not exists(location):
makedirs(location)
- newname = self.req.download(url, self.pyfile.name, location, get, post, ref, cookies)
+ newname = self.req.download(url, self.pyfile.name.encode(sys.getfilesystemencoding(), "replace"), location, get, post, ref, cookies)
self.pyfile.size = self.req.dl_size