diff --git a/linedance-app/local/file_watcher.py b/linedance-app/local/file_watcher.py index c13bad85..3f34a839 100644 --- a/linedance-app/local/file_watcher.py +++ b/linedance-app/local/file_watcher.py @@ -286,7 +286,7 @@ class LibraryWatcher: else: song_id = str(uuid.uuid4()) conn.execute(""" - INSERT INTO songs (id, library_id, local_path, title, + INSERT OR IGNORE INTO songs (id, library_id, local_path, title, artist, album, bpm, duration_sec, file_format, file_modified_at, extra_tags) VALUES (?,?,?,?,?,?,?,?,?,?,?)