28 lines
451 B
Go
Raw Normal View History

2018-10-28 01:09:31 +00:00
package main
import (
2019-04-23 05:52:55 +00:00
"github.com/akyoto/color"
2018-10-28 01:09:31 +00:00
"github.com/animenotifier/arn"
"github.com/animenotifier/arn/stringutils"
)
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()
}
}