diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-12-22 17:57:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-22 17:57:00 +0000 |
| commit | 00211ca056bbb2084e9f103290713127042c9d32 (patch) | |
| tree | 0959d9c64ee6dc2b7671f03e72d67bb428c5fbfb /Emby.Naming/Video | |
| parent | ca4769ab6863d2745082428dfa1fafea6cb89e5d (diff) | |
| parent | 05c8834a3a2a51ad2c0bff355500348382697fb5 (diff) | |
Merge pull request #7028 from cvium/everything_went_wrong
Diffstat (limited to 'Emby.Naming/Video')
| -rw-r--r-- | Emby.Naming/Video/VideoListResolver.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Emby.Naming/Video/VideoListResolver.cs b/Emby.Naming/Video/VideoListResolver.cs index bce7cb47f1..4fc849256b 100644 --- a/Emby.Naming/Video/VideoListResolver.cs +++ b/Emby.Naming/Video/VideoListResolver.cs @@ -16,18 +16,13 @@ namespace Emby.Naming.Video /// <summary> /// Resolves alternative versions and extras from list of video files. /// </summary> - /// <param name="files">List of related video files.</param> + /// <param name="videoInfos">List of related video files.</param> /// <param name="namingOptions">The naming options.</param> /// <param name="supportMultiVersion">Indication we should consider multi-versions of content.</param> /// <param name="parseName">Whether to parse the name or use the filename.</param> /// <returns>Returns enumerable of <see cref="VideoInfo"/> which groups files together when related.</returns> - public static IReadOnlyList<VideoInfo> Resolve(IEnumerable<FileSystemMetadata> files, NamingOptions namingOptions, bool supportMultiVersion = true, bool parseName = true) + public static IReadOnlyList<VideoInfo> Resolve(IReadOnlyList<VideoFileInfo> videoInfos, NamingOptions namingOptions, bool supportMultiVersion = true, bool parseName = true) { - var videoInfos = files - .Select(i => VideoResolver.Resolve(i.FullName, i.IsDirectory, namingOptions, parseName)) - .OfType<VideoFileInfo>() - .ToList(); - // Filter out all extras, otherwise they could cause stacks to not be resolved // See the unit test TestStackedWithTrailer var nonExtras = videoInfos |
