Skip to content

Commit

Permalink
fix: extras → episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed May 12, 2024
1 parent e3c552c commit 2a3eed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shokofin/Resolvers/ShokoResolveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public async Task<MediaFolderConfiguration> GetOrCreateConfigurationForMediaFold
importFolderSubPath
);

var episodeIds = seasonInfo.ExtrasList.Select(episode => episode.Id).Append(episodeId).ToHashSet();
var episodeIds = seasonInfo.EpisodeList.Concat(seasonInfo.AlternateEpisodesList).Concat(seasonInfo.ExtrasList).Select(episode => episode.Id).Append(episodeId).ToHashSet();
var files = ApiClient.GetFilesForSeries(seasonInfo.Id).ConfigureAwait(false).GetAwaiter().GetResult();
var fileLocations = files
.Where(files => files.CrossReferences.Any(xref => episodeIds.Overlaps(xref.Episodes.Where(e => e.Shoko.HasValue).Select(e => e.Shoko!.Value.ToString()))))
Expand Down

0 comments on commit 2a3eed4

Please sign in to comment.