Added patch to fix image IDs

This commit is contained in:
Eduard Urbach 2018-04-04 17:31:40 +02:00
parent 1609a0db75
commit 7e7747e517

View File

@ -0,0 +1,23 @@
package main
import (
"github.com/animenotifier/arn"
"github.com/fatih/color"
)
func main() {
color.Yellow("Moving Kitsu IDs to new IDs")
defer color.Green("Finished.")
defer arn.Node.Close()
for anime := range arn.StreamAnime() {
kitsuID := anime.GetMapping("kitsu/anime")
if kitsuID == "" {
continue
}
anime.MoveImageFiles(kitsuID, anime.ID)
}
}