From fe574354d0eb7e302479d10e8551ab1b150c5d56 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sun, 12 Aug 2012 15:59:43 +0530 Subject: [PATCH] Fixed decode() function for python < 2.7 --- headphones/librarysync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/librarysync.py b/headphones/librarysync.py index f17db1ee..8dfd4dd5 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -56,7 +56,7 @@ def libraryScan(dir=None): song = os.path.join(r, files) # We need the unicode path to use for logging, inserting into database - unicode_song_path = song.decode(headphones.SYS_ENCODING, errors='replace') + unicode_song_path = song.decode(headphones.SYS_ENCODING, 'replace') # Try to read the metadata try: