28 lines
454 B
Go
Raw Normal View History

2018-10-28 01:09:31 +00:00
package main
import (
"github.com/animenotifier/arn"
"github.com/animenotifier/arn/stringutils"
"github.com/blitzprog/color"
2018-10-28 01:09:31 +00:00
)
func main() {
color.Yellow("Updating AMV info")
defer color.Green("Finished.")
defer arn.Node.Close()
for amv := range arn.StreamAMVs() {
2018-10-28 01:20:59 +00:00
err := amv.RefreshInfo()
2018-10-28 01:09:31 +00:00
if err != nil {
color.Red(err.Error())
continue
}
color.Green(amv.Title.Canonical)
2018-10-28 01:20:59 +00:00
stringutils.PrettyPrint(amv.Info)
2018-10-28 01:09:31 +00:00
amv.Save()
}
}