17 lines
304 B
Go
Raw Normal View History

2017-07-01 21:08:12 +00:00
package main
import (
"github.com/animenotifier/arn"
)
func main() {
2017-11-01 19:11:05 +00:00
defer arn.Node.Close()
for anime := range arn.StreamAnime() {
2017-07-01 21:08:12 +00:00
providerID := anime.GetMapping("anilist/anime")
2017-11-01 19:11:05 +00:00
arn.DB.Delete("AniListToAnime", providerID)
2017-07-01 21:08:12 +00:00
anime.RemoveMapping("anilist/anime", providerID)
2017-11-01 19:11:05 +00:00
anime.Save()
2017-07-01 21:08:12 +00:00
}
}