From 967f4c610c42511bc02601036537270d9b3539e8 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sat, 11 Aug 2012 14:02:53 +0530 Subject: [PATCH] Fixed unicodedecodeerror in music_encoder: paths were being converted to unicode which wasn't necessary --- headphones/music_encoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/music_encoder.py b/headphones/music_encoder.py index 20e995e1..51864aa4 100644 --- a/headphones/music_encoder.py +++ b/headphones/music_encoder.py @@ -49,13 +49,13 @@ def encode(albumPath): if (headphones.ENCODERLOSSLESS): if (music.lower().endswith('.flac')): musicFiles.append(os.path.join(r, music)) - musicTemp = os.path.normpath(os.path.splitext(music)[0]+'.'+headphones.ENCODEROUTPUTFORMAT).encode(headphones.SYS_ENCODING) + musicTemp = os.path.normpath(os.path.splitext(music)[0]+'.'+headphones.ENCODEROUTPUTFORMAT) musicTempFiles.append(os.path.join(tempDirEncode, musicTemp)) else: logger.debug('Music "%s" is already encoded' % (music)) else: musicFiles.append(os.path.join(r, music)) - musicTemp = os.path.normpath(os.path.splitext(music)[0]+'.'+headphones.ENCODEROUTPUTFORMAT).encode(headphones.SYS_ENCODING) + musicTemp = os.path.normpath(os.path.splitext(music)[0]+'.'+headphones.ENCODEROUTPUTFORMAT) musicTempFiles.append(os.path.join(tempDirEncode, musicTemp)) if headphones.ENCODER=='lame':