fix duplicate artist and album color entry in db

+ Remove folder store
+ Reduce fuzzy search score cutoff from 90% to 75%
+ use inheritance to init Artist class
+ misc
This commit is contained in:
geoffrey45
2023-03-26 18:01:26 +03:00
parent 357afeb700
commit 5487dad27b
18 changed files with 102 additions and 333 deletions
+6 -3
View File
@@ -45,13 +45,15 @@ CREATE TABLE IF NOT EXISTS tracks (
genre text,
title text NOT NULL,
track integer NOT NULL,
trackhash text NOT NULL
trackhash text NOT NULL,
UNIQUE (filepath)
);
CREATE TABLE IF NOT EXISTS albums (
id integer PRIMARY KEY,
albumhash text NOT NULL,
colors text NOT NULL
colors text NOT NULL,
UNIQUE (albumhash)
);
@@ -60,7 +62,8 @@ CREATE TABLE IF NOT EXISTS artists (
id integer PRIMARY KEY,
artisthash text NOT NULL,
colors text,
bio text
bio text,
UNIQUE (artisthash)
);
CREATE TABLE IF NOT EXISTS folders (