Minor change

This commit is contained in:
Eduard Urbach 2018-04-07 11:09:08 +02:00
parent 960ce16569
commit a941af77f2

View File

@ -21,7 +21,6 @@ func main() {
continue
}
fmt.Printf("%s %s\n", color.CyanString(anime.Title.Canonical), malID)
sync(anime, malID)
}
@ -38,6 +37,9 @@ func sync(anime *arn.Anime, malID string) {
malAnime := obj.(*mal.Anime)
// Log title
fmt.Printf("%s %s\n", color.CyanString(anime.Title.Canonical), malID)
if len(anime.Genres) == 0 && len(malAnime.Genres) > 0 {
fmt.Println("Genres:", malAnime.Genres)
anime.Genres = malAnime.Genres