Use a CDN for faster AMV delivery
This commit is contained in:
@ -1,27 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/notify.moe/arn"
|
||||
"github.com/animenotifier/notify.moe/arn/stringutils"
|
||||
)
|
||||
|
||||
func main() {
|
||||
color.Yellow("Updating AMV info")
|
||||
|
||||
defer color.Green("Finished.")
|
||||
defer arn.Node.Close()
|
||||
|
||||
for amv := range arn.StreamAMVs() {
|
||||
err := amv.RefreshInfo()
|
||||
|
||||
if err != nil {
|
||||
color.Red(err.Error())
|
||||
continue
|
||||
}
|
||||
|
||||
color.Green(amv.Title.Canonical)
|
||||
stringutils.PrettyPrint(amv.Info)
|
||||
amv.Save()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user