Don't prompt for duplicate track on a rescan

Fixes #87
This commit is contained in:
Keith Edmunds 2021-10-15 15:02:25 +01:00
parent 1a16b1022d
commit a72a86cfcc

View File

@ -77,7 +77,7 @@ def create_track_from_file(session, path, interactive=False):
INFO(f" Artist: \"{artist}\"")
# Check for duplicate
tracks = Tracks.search_titles(session, title)
if tracks:
if interactive and tracks:
print("Found the following possible matches:")
for track in tracks:
print(f'"{track.title}" by {track.artist}')