Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 23488f61 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Don't need to add VT, just deletes VOCA

parent af012c34
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!126Category and type update
Pipeline #1928 réussi
...@@ -30,8 +30,8 @@ CREATE TABLE IF NOT EXISTS kara_type ...@@ -30,8 +30,8 @@ CREATE TABLE IF NOT EXISTS kara_type
); );
INSERT OR REPLACE INTO kara_type (id, name) VALUES INSERT OR REPLACE INTO kara_type (id, name) VALUES
(1, 'ED/d*'), (2, 'OP/d*'), (3, 'AMV'), (4, 'IS'), (5, 'VOCA'), (6, 'LIVE'), (1, 'ED/d*'), (2, 'OP/d*'), (3, 'AMV'), (4, 'IS'), (6, 'LIVE'),
(7, 'CDG'), (8, 'PV'), (9, 'MV'), (10, 'VT'); (7, 'CDG'), (8, 'PV'), (9, 'MV');
CREATE TABLE IF NOT EXISTS kara_category CREATE TABLE IF NOT EXISTS kara_category
( id INTEGER PRIMARY KEY ( id INTEGER PRIMARY KEY
...@@ -39,7 +39,7 @@ CREATE TABLE IF NOT EXISTS kara_category ...@@ -39,7 +39,7 @@ CREATE TABLE IF NOT EXISTS kara_category
); );
INSERT OR REPLACE INTO kara_category (id, name) VALUES INSERT OR REPLACE INTO kara_category (id, name) VALUES
(1, 'vo'), (2, 'va'), (3, 'amv'), (4, 'cdg'), (5, 'autres'); (1, 'vo'), (2, 'va'), (3, 'amv'), (4, 'cdg'), (5, 'autres'), (6, 'vocaloid');
CREATE TABLE IF NOT EXISTS language CREATE TABLE IF NOT EXISTS language
( id INTEGER PRIMARY KEY ( id INTEGER PRIMARY KEY
......
...@@ -154,9 +154,9 @@ metadata_from_path(char *const mkvfile, struct kara_metadata *meta) ...@@ -154,9 +154,9 @@ metadata_from_path(char *const mkvfile, struct kara_metadata *meta)
/* TODO: Import types and categories from the db */ /* TODO: Import types and categories from the db */
static const char *rgx = static const char *rgx =
"^/(.+)/(vo|va|amv|cdg|autres)/" "^/(.+)/(vo|va|amv|cdg|autres|vocaloid)/"
"(jp|fr|en|ru|sp|it|ch|latin|multi|undefined)/(.+)/" "(jp|fr|en|ru|sp|it|ch|latin|multi|undefined)/(.+)/"
"(.+) - (OP|ED|IS|AMV|VOCA|PV|MV|LIVE|VT)([[:digit:]]*) - (.+)\\.mkv$"; "(.+) - (OP|ED|IS|AMV|PV|MV|LIVE)([[:digit:]]*) - (.+)\\.mkv$";
if (!regex_init && regcomp(&regex, rgx, REG_EXTENDED)) { if (!regex_init && regcomp(&regex, rgx, REG_EXTENDED)) {
LOG_ERROR("MPV", "Failed to compile regex"); LOG_ERROR("MPV", "Failed to compile regex");
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter