From d2e63d53ecdaf80ce39ad134e7e8466b58c75dcb Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sat, 25 Jun 2011 01:57:09 -0400 Subject: [PATCH] Use Unicode-ized pathname in all cases in from_text() (was leaving it UTF-8 for the most common case). After "LucasNZ". --- 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