Skip to content

Commit

Permalink
fix: don't try to use an extension method for .IndexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Nov 17, 2023
1 parent 60f2b40 commit 8287b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/API/ShokoAPIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ private async Task<FileInfo> 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();

Expand Down

0 comments on commit 8287b59

Please sign in to comment.