From aa756e60bc0258ca88f08d304331177d13219d8a Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 15 Feb 2018 08:22:37 +0100 Subject: [PATCH] Ensure that we have unicode paths for database lookup --- resources/lib/kodidb_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/kodidb_functions.py b/resources/lib/kodidb_functions.py index 439fbab6..a05ed406 100644 --- a/resources/lib/kodidb_functions.py +++ b/resources/lib/kodidb_functions.py @@ -5,7 +5,7 @@ from logging import getLogger from ntpath import dirname import artwork -from utils import kodi_sql +from utils import kodi_sql, tryDecode import variables as v ############################################################################### @@ -1574,6 +1574,7 @@ def kodiid_from_filename(path, kodi_type): Returns None if not possible """ kodi_id = None + path = tryDecode(path) try: filename = path.rsplit('/', 1)[1] path = path.rsplit('/', 1)[0] + '/'