From a72a86cfcc0d4d89a2a2ba83187a9762226f27cd Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 15 Oct 2021 15:02:25 +0100 Subject: [PATCH] Don't prompt for duplicate track on a rescan Fixes #87 --- app/songdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/songdb.py b/app/songdb.py index 49b8cb1..c3ace97 100755 --- a/app/songdb.py +++ b/app/songdb.py @@ -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}')