Improved search index

This commit is contained in:
Eduard Urbach 2017-06-28 02:51:11 +02:00
parent bfbce4c9a2
commit de46187216

View File

@ -28,8 +28,12 @@ func updateAnimeIndex() {
}
for anime := range animeStream {
if anime.Title.Canonical != "" {
animeSearchIndex.TextToID[strings.ToLower(anime.Title.Canonical)] = anime.ID
if anime.Title.Romaji != "" {
animeSearchIndex.TextToID[strings.ToLower(anime.Title.Romaji)] = anime.ID
}
if anime.Title.English != "" {
animeSearchIndex.TextToID[strings.ToLower(anime.Title.English)] = anime.ID
}
if anime.Title.Japanese != "" {