From 77c0ae64b4eb5452c3d4de4845a7fcc2e93b3457 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 17 Feb 2022 17:10:30 +0100 Subject: [PATCH] Added docs to SortEpisodesBySeason --- utils/sort.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/sort.go b/utils/sort.go index bf9fb77..760d19c 100644 --- a/utils/sort.go +++ b/utils/sort.go @@ -7,7 +7,8 @@ import ( "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 { sortMap := map[string]map[int][]*crunchyroll.Episode{}