From 258a8799f5aa2a4637586bea0276adf969650ccc Mon Sep 17 00:00:00 2001 From: spoob Date: Sun, 15 Aug 2010 22:48:11 +0200 Subject: Youtube Playlist --- pyLoadCore.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index fe7ba861f..c2cb7976a 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -50,6 +50,15 @@ from time import sleep from traceback import print_exc from xmlrpclib import Binary + +import locale +import codecs +encoding = locale.getlocale()[1] +if not encoding: + encoding = "us-ascii" +sys.stdout = codecs.getwriter(encoding)(sys.stdout, errors = "ignore") +sys.stderr = codecs.getwriter(encoding)(sys.stderr, errors = "ignore") + from module import InitHomeDir from module.AccountManager import AccountManager from module.CaptchaManager import CaptchaManager -- cgit v1.2.3