Skip to content

Commit

Permalink
fix: simplify multi resolver code now that Jellyfin 10.10 is out
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Oct 27, 2024
1 parent 23c7575 commit 80d2758
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Shokofin/Resolvers/ShokoResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,7 @@ NamingOptions namingOptions
File.Delete(keepFile);
}

// TODO: uncomment the code snippet once we reach JF 10.10.
// return new() { Items = items, ExtraFiles = new() };

// TODO: Remove these two hacks once we have proper support for adding multiple series at once.
if (!items.Any(i => i is Movie) && items.Count > 0) {
fileInfoList.Clear();
fileInfoList.AddRange(items.OrderBy(s => int.Parse(s.Path.GetAttributeValue(ShokoSeriesId.Name)!)).Select(s => FileSystem.GetFileSystemInfo(s.Path)));
}

return new() { Items = items.Where(i => i is Movie).ToList(), ExtraFiles = items.OfType<TvSeries>().Select(s => FileSystem.GetFileSystemInfo(s.Path)).ToList() };
return new() { Items = items, ExtraFiles = [] };
}

return null;
Expand Down

0 comments on commit 80d2758

Please sign in to comment.