From 80d2758476d5bb2d7dc156ef30b9030c59736556 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Sun, 27 Oct 2024 13:20:49 +0100 Subject: [PATCH] fix: simplify multi resolver code now that Jellyfin 10.10 is out --- Shokofin/Resolvers/ShokoResolver.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Shokofin/Resolvers/ShokoResolver.cs b/Shokofin/Resolvers/ShokoResolver.cs index b25fb003..0db9be79 100644 --- a/Shokofin/Resolvers/ShokoResolver.cs +++ b/Shokofin/Resolvers/ShokoResolver.cs @@ -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().Select(s => FileSystem.GetFileSystemInfo(s.Path)).ToList() }; + return new() { Items = items, ExtraFiles = [] }; } return null;