Fixed AnimeSort call
This commit is contained in:
parent
4e8d02616a
commit
fd2ed7d105
@ -48,7 +48,7 @@ func main() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Sort so that we download the most important ones first
|
// Sort so that we download the most important ones first
|
||||||
arn.SortAnimeByQuality(animes, "")
|
arn.SortAnimeByQuality(animes)
|
||||||
|
|
||||||
// Queue up URLs
|
// Queue up URLs
|
||||||
count := 0
|
count := 0
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
package explore
|
package explore
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strconv"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/aerogo/aero"
|
"github.com/aerogo/aero"
|
||||||
"github.com/animenotifier/arn"
|
"github.com/animenotifier/arn"
|
||||||
"github.com/animenotifier/notify.moe/components"
|
"github.com/animenotifier/notify.moe/components"
|
||||||
"github.com/animenotifier/notify.moe/utils"
|
"github.com/animenotifier/notify.moe/utils"
|
||||||
"time"
|
|
||||||
"strconv"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Get ...
|
// Get ...
|
||||||
@ -55,6 +56,6 @@ func filterAnime(year, status, typ string) []*arn.Anime {
|
|||||||
results = append(results, anime)
|
results = append(results, anime)
|
||||||
}
|
}
|
||||||
|
|
||||||
arn.SortAnimeByQuality(results, status)
|
arn.SortAnimeByQualityDetailed(results, status)
|
||||||
return results
|
return results
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ func Get(ctx *aero.Context) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
arn.SortAnimeByQuality(animes, "")
|
arn.SortAnimeByQuality(animes)
|
||||||
|
|
||||||
if len(animes) > animePerPage {
|
if len(animes) > animePerPage {
|
||||||
animes = animes[:animePerPage]
|
animes = animes[:animePerPage]
|
||||||
|
@ -22,7 +22,7 @@ func Get(ctx *aero.Context) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
allAnime := arn.AllAnime()
|
allAnime := arn.AllAnime()
|
||||||
arn.SortAnimeByQuality(allAnime, "")
|
arn.SortAnimeByQuality(allAnime)
|
||||||
|
|
||||||
added := 0
|
added := 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user