29 lines
470 B
Go
Raw Normal View History

2017-06-28 15:55:08 +00:00
package main
import (
"fmt"
"github.com/animenotifier/arn"
)
var mappings = map[string]arn.Mapping{
"13055": arn.Mapping{
Service: "shoboi/anime",
ServiceID: "4528",
},
}
func main() {
for animeID, mapping := range mappings {
anime, err := arn.GetAnime(animeID)
if err != nil {
panic(err)
}
fmt.Println(anime.ID, "=", mapping.Service, mapping.ServiceID)
2017-06-28 16:39:52 +00:00
anime.AddMapping(mapping.Service, mapping.ServiceID, "4J6qpK1ve")
2017-06-28 15:55:08 +00:00
anime.Save()
}
}