Migration to nano

This commit is contained in:
2017-11-01 10:28:40 +01:00
parent c60f53ed76
commit b0d03fe8ef
6 changed files with 19 additions and 51 deletions

View File

@ -10,13 +10,14 @@ import (
func main() {
color.Yellow("Syncing Shoboi Anime")
defer arn.Node.Close()
// Priority queues
highPriority := []*arn.Anime{}
mediumPriority := []*arn.Anime{}
lowPriority := []*arn.Anime{}
for anime := range arn.MustStreamAnime() {
for anime := range arn.StreamAnime() {
if anime.GetMapping("shoboi/anime") != "" {
continue
}
@ -51,7 +52,7 @@ func refreshQueue(queue []*arn.Anime) {
for _, anime := range queue {
if sync(anime) {
arn.PanicOnError(anime.Save())
anime.Save()
count++
}
}