From 4debb567b8aee14fc617898e5947cceb8b22f29c Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Sat, 21 Mar 2020 01:16:27 +0800 Subject: [PATCH] fix: add svg files, continue --- database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database.py b/database.py index d5bc478..d3692a3 100644 --- a/database.py +++ b/database.py @@ -314,7 +314,8 @@ class MusicDatabase: del music_dict['title'] del music_dict['type'] del music_dict['tags'] - del music_dict['path'] + if 'path' in music_dict: + del music_dict['path'] del music_dict['keywords'] cursor.execute("INSERT OR REPLACE INTO music (id, type, title, metadata, tags, path, keywords) VALUES (?, ?, ?, ?, ?, ?, ?)",