diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-31 21:09:40 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-31 21:09:40 +0200 |
commit | 26961676bf2bada721a5d7e69dadac00820a0cfa (patch) | |
tree | 09ec684fed2285925e965cc8a31badbaddc96dd4 /module/plugins | |
parent | cleanup (diff) | |
download | pyload-26961676bf2bada721a5d7e69dadac00820a0cfa.tar.xz |
encoding fix, locale cleanup
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/Plugin.py | 4 | ||||
-rw-r--r-- | module/plugins/hoster/RapidshareCom.py | 1 |
2 files changed, 2 insertions, 3 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 diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py index cc3101529..cf8bc9069 100644 --- a/module/plugins/hoster/RapidshareCom.py +++ b/module/plugins/hoster/RapidshareCom.py @@ -3,7 +3,6 @@ # -*- coding: utf-8 -*- import re -from time import time from module.network.Request import getURL from module.plugins.Hoster import Hoster |