Limit matching tracks on import to five
This commit is contained in:
parent
04f1fba581
commit
25add4239d
@ -666,6 +666,10 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
artist = tags['artist']
|
||||
possible_matches = Tracks.search_titles(session, title)
|
||||
if possible_matches:
|
||||
if len(possible_matches) > 5:
|
||||
txt = "More than five tracks look similar to "
|
||||
txt += f'"{title}" by "{artist} ({fname})":\n\n'
|
||||
else:
|
||||
txt += 'Similar to new track '
|
||||
txt += f'"{title}" by "{artist} ({fname})":\n\n'
|
||||
for track in possible_matches:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user