aboutsummaryrefslogtreecommitdiff
path: root/tools/animeimporter
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-10-11 19:12:27 (UTC)
committerrtz12 <koenig@fagott.pw>2016-10-11 19:12:27 (UTC)
commit1018d5deb3cce8f1d2fc4863d82e51539837daca (patch)
tree97d4a2cedbfeb118cd2a63011b2d179e1b2c1000 /tools/animeimporter
parentce5973c4024f22a8f8c63818109a2ca4f3be7bc4 (diff)
Man muss auch die richtigen Properties benutzen
Diffstat (limited to 'tools/animeimporter')
-rw-r--r--tools/animeimporter/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/animeimporter/main.go b/tools/animeimporter/main.go
index 7d95b8e..81ba516 100644
--- a/tools/animeimporter/main.go
+++ b/tools/animeimporter/main.go
@@ -67,17 +67,17 @@ func InsertSeries(s WrappedSeries) int {
67 } 67 }
68 if s.Series.KanjiName != "" { 68 if s.Series.KanjiName != "" {
69 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);", 69 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);",
70 dbID, s.Series.Name, 0) 70 dbID, s.Series.KanjiName, 0)
71 LogErr(err) 71 LogErr(err)
72 } 72 }
73 if s.Series.RomajiName != "" { 73 if s.Series.RomajiName != "" {
74 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);", 74 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);",
75 dbID, s.Series.Name, 1) 75 dbID, s.Series.RomajiName, 1)
76 LogErr(err) 76 LogErr(err)
77 } 77 }
78 if s.Series.FuriganaName != "" { 78 if s.Series.FuriganaName != "" {
79 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);", 79 _, err := db.Exec("INSERT INTO grilist.appearance_names (appearance_id, name, name_type) VALUES ($1, $2, $3);",
80 dbID, s.Series.Name, 3) 80 dbID, s.Series.FuriganaName, 3)
81 LogErr(err) 81 LogErr(err)
82 } 82 }
83 for _, v := range s.Series.OtherNames { 83 for _, v := range s.Series.OtherNames {