webserve.py: Fix scanning artists with non-ASCII letters in folder names.

This patch prevents exceptions from os.path.isdir() called with unicode folder names.
This commit is contained in:
Andrzej Ciarkowski
2016-02-15 21:59:10 +01:00
parent ffd72ed6f7
commit 7de7dea1da
+1 -1
View File
@@ -343,7 +343,7 @@ class WebInterface(object):
for dir in dirs:
artistfolder = os.path.join(dir, folder)
if not os.path.isdir(artistfolder):
if not os.path.isdir(artistfolder.encode(headphones.SYS_ENCODING)):
logger.debug("Cannot find directory: " + artistfolder)
continue
threading.Thread(target=librarysync.libraryScan,