31 lines
503 B
Go
Raw Normal View History

2017-07-01 16:33:20 +00:00
package main
import (
2017-07-01 23:44:10 +00:00
"fmt"
2017-07-01 19:29:33 +00:00
2017-07-09 13:56:40 +00:00
"github.com/animenotifier/anilist"
2017-07-01 16:33:20 +00:00
"github.com/animenotifier/arn"
2017-07-01 19:29:33 +00:00
"github.com/fatih/color"
2017-07-01 16:33:20 +00:00
)
func main() {
2017-07-09 13:56:40 +00:00
arn.PanicOnError(anilist.Authorize())
color.Green(anilist.AccessToken)
2017-07-01 19:29:33 +00:00
2017-07-01 23:44:10 +00:00
allAnime, err := arn.AllAnime()
2017-07-01 19:29:33 +00:00
arn.PanicOnError(err)
2017-07-01 23:44:10 +00:00
count := 0
2017-07-09 13:56:40 +00:00
stream := anilist.StreamAnime()
2017-07-01 19:29:33 +00:00
2017-07-01 23:44:10 +00:00
for aniListAnime := range stream {
anime := arn.FindAniListAnime(aniListAnime, allAnime)
2017-07-01 19:29:33 +00:00
2017-07-07 10:10:27 +00:00
if anime == nil {
fmt.Println(anime.ID, aniListAnime.TitleRomaji)
2017-07-01 19:29:33 +00:00
}
2017-07-01 23:44:10 +00:00
count++
2017-07-01 19:29:33 +00:00
}
2017-07-01 16:33:20 +00:00
}