From a941af77f29dc016ee1650933d1d2100b28444ba Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 7 Apr 2018 11:09:08 +0200 Subject: [PATCH] Minor change --- patches/import-mal-anime-data/import-mal-anime-data.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/import-mal-anime-data/import-mal-anime-data.go b/patches/import-mal-anime-data/import-mal-anime-data.go index a2de0e07..dcbb66f9 100644 --- a/patches/import-mal-anime-data/import-mal-anime-data.go +++ b/patches/import-mal-anime-data/import-mal-anime-data.go @@ -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