22 lines
396 B
Go
Raw Normal View History

2018-03-18 23:01:16 +00:00
package main
import (
"fmt"
"github.com/animenotifier/arn"
"github.com/blitzprog/color"
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),
)
}
}