Allow artist search in title box with "a/"

This commit is contained in:
Keith Edmunds 2024-04-28 18:45:37 +01:00
parent dfc51e1399
commit 57e81b0f17

View File

@ -138,7 +138,9 @@ class TrackSelectDialog(QDialog):
self.ui.matchList.clear() self.ui.matchList.clear()
if len(s) > 0: 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) matches = Tracks.search_titles(self.session, "%" + s)
else: else:
matches = Tracks.search_artists(self.session, "%" + s) matches = Tracks.search_artists(self.session, "%" + s)