Fixes a bug in which paths with non-ASCII characters prevented loading of the file properties

This commit is contained in:
Alberto Sottile 2018-03-09 00:43:32 +01:00
parent 7c8b3d93fa
commit 6c53e6c58f

View File

@ -1929,6 +1929,7 @@ class FileSwitchManager(object):
return False
def notifyUserIfFileNotInMediaDirectory(self, filenameToFind, path):
path = path.decode('utf-8')
directoryToFind = os.path.dirname(path)
if directoryToFind in self.mediaDirectoriesNotFound:
return