Updated company importer

This commit is contained in:
Eduard Urbach 2017-11-29 14:30:38 +01:00
parent 5ab4c2c817
commit 626bc3bec9

View File

@ -17,6 +17,10 @@ func main() {
defer arn.Node.Close() defer arn.Node.Close()
color.Yellow("Importing companies") color.Yellow("Importing companies")
for company := range arn.StreamCompanies() {
companies[company.Name.English] = company
}
for anime := range arn.StreamAnime() { for anime := range arn.StreamAnime() {
malID := anime.GetMapping("myanimelist/anime") malID := anime.GetMapping("myanimelist/anime")