playlist: Restore case sensitivity in col_clause method

This commit is contained in:
Jan Holthuis 2019-02-17 17:34:36 +01:00
parent d6022e28d7
commit 4f1a468aa9

View file

@ -67,8 +67,7 @@ class PlaylistQuery(beets.dbcore.FieldQuery):
if not self.paths:
# Playlist is empty
return '0', ()
clause = 'BYTELOWER(path) IN ({0})'.format(
', '.join('BYTELOWER(?)' for path in self.paths))
clause = 'path IN ({0})'.format(', '.join('?' for path in self.paths))
return clause, (beets.library.BLOB_TYPE(p) for p in self.paths)
def match(self, item):