Added anime status check
This commit is contained in:
parent
b2f9754a19
commit
af89e329c4
24
patches/anime-status/anime-status.go
Normal file
24
patches/anime-status/anime-status.go
Normal file
@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user