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