22 lines
404 B
Go
Raw Normal View History

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