28 lines
409 B
Go
Raw Normal View History

2018-03-10 17:52:46 +00:00
package main
import (
"fmt"
"strings"
2019-06-03 09:32:43 +00:00
"github.com/animenotifier/notify.moe/arn"
2018-03-10 17:52:46 +00:00
)
func main() {
defer arn.Node.Close()
for anime := range arn.StreamAnime() {
for i := 0; i < len(anime.Genres); i++ {
old := anime.Genres[i]
genre := strings.TrimSpace(anime.Genres[i])
if genre != old {
fmt.Println(anime.Title.Canonical, genre)
}
anime.Genres[i] = genre
}
anime.Save()
}
}