diff --git a/Shokofin/API/ShokoAPIManager.cs b/Shokofin/API/ShokoAPIManager.cs index 12e22c01..2afe8427 100644 --- a/Shokofin/API/ShokoAPIManager.cs +++ b/Shokofin/API/ShokoAPIManager.cs @@ -453,7 +453,7 @@ private async Task CreateFileInfo(File file, string fileId, string ser // Group and order the episodes. var groupedEpisodeLists = episodeList .GroupBy(episode => episode.AniDB.Type) - .OrderByDescending(a => EpisodePickOrder.IndexOf(a.Key)) + .OrderByDescending(a => Array.IndexOf(EpisodePickOrder, a.Key)) .Select(epList => epList.OrderBy(episode => episode.AniDB.EpisodeNumber).ToList()) .ToList();