diff --git a/jobs/mal-crawler/mal-crawler.go b/jobs/mal-crawler/mal-crawler.go index ecee0697..d46bdf82 100644 --- a/jobs/mal-crawler/mal-crawler.go +++ b/jobs/mal-crawler/mal-crawler.go @@ -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 diff --git a/pages/explore/explore.go b/pages/explore/explore.go index 47bf7593..9a847f9a 100644 --- a/pages/explore/explore.go +++ b/pages/explore/explore.go @@ -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 } diff --git a/pages/genre/genre.go b/pages/genre/genre.go index f5350c75..bdd7dc76 100644 --- a/pages/genre/genre.go +++ b/pages/genre/genre.go @@ -23,7 +23,7 @@ func Get(ctx *aero.Context) string { } } - arn.SortAnimeByQuality(animes, "") + arn.SortAnimeByQuality(animes) if len(animes) > animePerPage { animes = animes[:animePerPage] diff --git a/pages/genres/genres.go b/pages/genres/genres.go index 05c4e0e2..e2b812cc 100644 --- a/pages/genres/genres.go +++ b/pages/genres/genres.go @@ -22,7 +22,7 @@ func Get(ctx *aero.Context) string { } allAnime := arn.AllAnime() - arn.SortAnimeByQuality(allAnime, "") + arn.SortAnimeByQuality(allAnime) added := 0