Cleanup
This commit is contained in:
@ -1,23 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
color.Yellow("Moving Kitsu IDs to new IDs")
|
||||
// color.Yellow("Moving Kitsu IDs to new IDs")
|
||||
|
||||
defer color.Green("Finished.")
|
||||
defer arn.Node.Close()
|
||||
// defer color.Green("Finished.")
|
||||
// defer arn.Node.Close()
|
||||
|
||||
for anime := range arn.StreamAnime() {
|
||||
kitsuID := anime.GetMapping("kitsu/anime")
|
||||
// for anime := range arn.StreamAnime() {
|
||||
// kitsuID := anime.GetMapping("kitsu/anime")
|
||||
|
||||
if kitsuID == "" {
|
||||
continue
|
||||
}
|
||||
// if kitsuID == "" {
|
||||
// continue
|
||||
// }
|
||||
|
||||
anime.MoveImageFiles(kitsuID, anime.ID)
|
||||
}
|
||||
// anime.MoveImageFiles(kitsuID, anime.ID)
|
||||
// }
|
||||
}
|
||||
|
Reference in New Issue
Block a user