Improved search index
This commit is contained in:
parent
bfbce4c9a2
commit
de46187216
@ -28,8 +28,12 @@ func updateAnimeIndex() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for anime := range animeStream {
|
for anime := range animeStream {
|
||||||
if anime.Title.Canonical != "" {
|
if anime.Title.Romaji != "" {
|
||||||
animeSearchIndex.TextToID[strings.ToLower(anime.Title.Canonical)] = anime.ID
|
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 != "" {
|
if anime.Title.Japanese != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user