Improved genre import
This commit is contained in:
parent
3d1891e1a7
commit
76a437b7ae
@ -21,6 +21,7 @@ func main() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println(anime.Title.Canonical, malID)
|
||||||
sync(anime, malID)
|
sync(anime, malID)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,4 +38,5 @@ func sync(anime *arn.Anime, malID string) {
|
|||||||
|
|
||||||
malAnime := obj.(*mal.Anime)
|
malAnime := obj.(*mal.Anime)
|
||||||
anime.Genres = malAnime.Genres
|
anime.Genres = malAnime.Genres
|
||||||
|
anime.Save()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user