From 69984a8c93ec8910b3cb026c9056572644c059ac Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 4 Mar 2012 18:00:23 +0100 Subject: Working recoding on demand for single files and cue sheets. --- db.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'db.py') diff --git a/db.py b/db.py index aa7ea6a..248d56a 100644 --- a/db.py +++ b/db.py @@ -165,7 +165,10 @@ class Track(Base): return r.all() def get_path(self): - return os.path.join(self.directory.path, self.filename) + s = os.path.join(self.directory.path, self.filename) + if isinstance(s, unicode): + s = s.encode('utf-8') + return s def get_relpath(self): return os.path.relpath(self.get_path(), config.get('music_root')) -- cgit v1.2.3