From ecfd5d911388502a3133ad2fcc05b02299944bf4 Mon Sep 17 00:00:00 2001 From: lucas_nz Date: Sat, 25 Jun 2011 20:56:32 +1200 Subject: [PATCH] Use Unicode-ized pathname in all cases in from_text() (was leaving it UTF-8 for the most common case). --- metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metadata.py b/metadata.py index 4825476..d0d7bff 100755 --- a/metadata.py +++ b/metadata.py @@ -237,7 +237,8 @@ def from_eyetv(full_path): def from_text(full_path): metadata = {} - path, name = os.path.split(unicode(full_path, 'utf-8')) + full_path = unicode(full_path, 'utf-8') + path, name = os.path.split(full_path) title, ext = os.path.splitext(name) for metafile in [os.path.join(path, title) + '.properties', -- 2.11.4.GIT