mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 19:52:16 +00:00
Fixed lookup of parent folder in scanner, to resolve issue when two folders start with the same characters.
This commit is contained in:
parent
541efa6437
commit
e1e5961c41
@ -250,7 +250,7 @@ class Scanner:
|
||||
return folders.one()
|
||||
|
||||
db = self.__store.get_database().__module__[len('storm.databases.'):]
|
||||
folder = self.__store.find(Folder, Like(path, Concat(Folder.path, u'%', db))).order_by(Folder.path).last()
|
||||
folder = self.__store.find(Folder, Like(path, Concat(Folder.path, os.sep + u'%', db))).order_by(Folder.path).last()
|
||||
|
||||
full_path = folder.path
|
||||
path = path[len(folder.path) + 1:]
|
||||
|
Loading…
Reference in New Issue
Block a user