Finished kitsu import
This commit is contained in:
21
patches/show-kitsu-mappings/show-kitsu-mappings.go
Normal file
21
patches/show-kitsu-mappings/show-kitsu-mappings.go
Normal file
@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
defer arn.Node.Close()
|
||||
|
||||
for mapping := range arn.StreamKitsuMappings() {
|
||||
fmt.Printf(
|
||||
"Anime %s: %s mapped to %s\n",
|
||||
mapping.Relationships.Item.Data.ID,
|
||||
color.YellowString(mapping.Attributes.ExternalSite),
|
||||
color.GreenString(mapping.Attributes.ExternalID),
|
||||
)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user