En del opdateringer
This commit is contained in:
@@ -292,12 +292,16 @@ class LibraryPanel(QWidget):
|
||||
|
||||
def _matches(self, song: dict, q: str, incl_alt: bool = False) -> bool:
|
||||
fields = [
|
||||
song.get("title", ""), song.get("artist", ""),
|
||||
song.get("album", ""), song.get("file_format", ""),
|
||||
] + song.get("dances", [])
|
||||
song.get("title", ""),
|
||||
song.get("artist", ""),
|
||||
song.get("album", ""),
|
||||
song.get("file_format", ""),
|
||||
] + song.get("dances", []) \
|
||||
+ song.get("dance_choreographers", []) \
|
||||
+ song.get("dance_levels", [])
|
||||
if incl_alt:
|
||||
fields += song.get("alt_dances", [])
|
||||
return any(q in f.lower() for f in fields)
|
||||
return any(q in f.lower() for f in fields if f)
|
||||
|
||||
def _render(self):
|
||||
self._list.clear()
|
||||
|
||||
Reference in New Issue
Block a user