From 57e81b0f1795835fdb6ab9a5493b88b1039426e0 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 28 Apr 2024 18:45:37 +0100 Subject: [PATCH] Allow artist search in title box with "a/" --- app/dialogs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/dialogs.py b/app/dialogs.py index 3c195e1..747464a 100644 --- a/app/dialogs.py +++ b/app/dialogs.py @@ -138,7 +138,9 @@ class TrackSelectDialog(QDialog): self.ui.matchList.clear() if len(s) > 0: - if self.ui.radioTitle.isChecked(): + if s.startswith("a/") and len(s) > 2: + matches = Tracks.search_artists(self.session, "%" + s[2:]) + elif self.ui.radioTitle.isChecked(): matches = Tracks.search_titles(self.session, "%" + s) else: matches = Tracks.search_artists(self.session, "%" + s)