28 lines
473 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"
2019-06-03 09:32:43 +00:00
"github.com/animenotifier/notify.moe/arn"
"github.com/animenotifier/notify.moe/arn/stringutils"
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()
}
}