Fixed AnimeSort call

This commit is contained in:
Eduard Urbach 2018-03-14 01:02:41 +01:00
parent 4e8d02616a
commit fd2ed7d105
4 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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
}

View File

@ -23,7 +23,7 @@ func Get(ctx *aero.Context) string {
}
}
arn.SortAnimeByQuality(animes, "")
arn.SortAnimeByQuality(animes)
if len(animes) > animePerPage {
animes = animes[:animePerPage]

View File

@ -22,7 +22,7 @@ func Get(ctx *aero.Context) string {
}
allAnime := arn.AllAnime()
arn.SortAnimeByQuality(allAnime, "")
arn.SortAnimeByQuality(allAnime)
added := 0