30 lines
479 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-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() {
arn.PanicOnError(arn.AniList.Authorize())
2017-07-01 23:44:10 +00:00
color.Green(arn.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
stream := arn.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
}