25 lines
603 B
Go
Raw Normal View History

2018-10-11 06:32:16 +00:00
package main
import (
"fmt"
2019-04-23 05:45:17 +00:00
"github.com/akyoto/color"
2019-06-03 09:32:43 +00:00
"github.com/animenotifier/notify.moe/arn"
2018-10-11 06:32:16 +00:00
)
func main() {
color.Yellow("Checking anime status")
defer color.Green("Finished.")
defer arn.Node.Close()
for anime := range arn.StreamAnime() {
if anime.Status != anime.CalculatedStatus() {
fmt.Println("--------------------------------------------------------------------------------")
fmt.Printf("%s (%s)\n", anime.Title.Canonical, anime.Type)
fmt.Printf("%s => %s\n", color.RedString(anime.Status), color.YellowString(anime.CalculatedStatus()))
fmt.Println(anime.ID)
}
}
}