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
|
||||
arn.SortAnimeByQuality(animes, "")
|
||||
arn.SortAnimeByQuality(animes)
|
||||
|
||||
// Queue up URLs
|
||||
count := 0
|
||||
|
@ -1,12 +1,13 @@
|
||||
package explore
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
"time"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
@ -55,6 +56,6 @@ func filterAnime(year, status, typ string) []*arn.Anime {
|
||||
results = append(results, anime)
|
||||
}
|
||||
|
||||
arn.SortAnimeByQuality(results, status)
|
||||
arn.SortAnimeByQualityDetailed(results, status)
|
||||
return results
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ func Get(ctx *aero.Context) string {
|
||||
}
|
||||
}
|
||||
|
||||
arn.SortAnimeByQuality(animes, "")
|
||||
arn.SortAnimeByQuality(animes)
|
||||
|
||||
if len(animes) > animePerPage {
|
||||
animes = animes[:animePerPage]
|
||||
|
@ -22,7 +22,7 @@ func Get(ctx *aero.Context) string {
|
||||
}
|
||||
|
||||
allAnime := arn.AllAnime()
|
||||
arn.SortAnimeByQuality(allAnime, "")
|
||||
arn.SortAnimeByQuality(allAnime)
|
||||
|
||||
added := 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user