Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
23488f61
Vérifiée
Valider
23488f61
rédigé
4 years ago
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
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
!126
Category and type update
Pipeline
#1928
réussi
4 years ago
Étape : initialization
Étape : configure
Étape : build
Étape : finalization
Modifications
2
Pipelines
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
src/database/disk.sql
+3
-3
3 ajouts, 3 suppressions
src/database/disk.sql
src/mkv/write.c
+2
-2
2 ajouts, 2 suppressions
src/mkv/write.c
avec
5 ajouts
et
5 suppressions
src/database/disk.sql
+
3
−
3
Voir le fichier @
23488f61
...
@@ -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
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/mkv/write.c
+
2
−
2
Voir le fichier @
23488f61
...
@@ -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"
);
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter