22 lines
404 B
Go
Raw Normal View History

2018-03-18 23:01:16 +00:00
package main
import (
"fmt"
2019-04-23 05:45:17 +00:00
"github.com/akyoto/color"
2019-06-03 09:32:43 +00:00
"github.com/animenotifier/notify.moe/arn"
2018-03-18 23:01:16 +00:00
)
func main() {
defer arn.Node.Close()
for mapping := range arn.StreamKitsuMappings() {
fmt.Printf(
2018-04-04 12:51:55 +00:00
"Kitsu Anime %s: %s mapped to %s\n",
2018-03-18 23:01:16 +00:00
mapping.Relationships.Item.Data.ID,
color.YellowString(mapping.Attributes.ExternalSite),
color.GreenString(mapping.Attributes.ExternalID),
)
}
}