Added docs to SortEpisodesBySeason

This commit is contained in:
bytedream 2022-02-17 17:10:30 +01:00
parent 3382eca3bd
commit 77c0ae64b4

View file

@ -7,7 +7,8 @@ import (
"strings" "strings"
) )
// SortEpisodesBySeason sorts the given episodes by their seasons // SortEpisodesBySeason sorts the given episodes by their seasons.
// Note that the same episodes just with different audio locales will cause problems
func SortEpisodesBySeason(episodes []*crunchyroll.Episode) [][]*crunchyroll.Episode { func SortEpisodesBySeason(episodes []*crunchyroll.Episode) [][]*crunchyroll.Episode {
sortMap := map[string]map[int][]*crunchyroll.Episode{} sortMap := map[string]map[int][]*crunchyroll.Episode{}