diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-01-27 16:50:17 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-01-27 16:50:17 +0100 |
| commit | 05ad2e9b3f5209d9e7ff9949d8c20cd8ef7062b6 (patch) | |
| tree | bd275d951a791bc31c03e79ca06b4d5eb261f408 /Emby.Naming | |
| parent | 42abb5a9931806a2ae1cedd433144ebf82768a0d (diff) | |
Add Year to the new VideoInfo
Diffstat (limited to 'Emby.Naming')
| -rw-r--r-- | Emby.Naming/Video/VideoListResolver.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Naming/Video/VideoListResolver.cs b/Emby.Naming/Video/VideoListResolver.cs index db8ebb56a..ef97b8739 100644 --- a/Emby.Naming/Video/VideoListResolver.cs +++ b/Emby.Naming/Video/VideoListResolver.cs @@ -184,6 +184,7 @@ namespace Emby.Naming.Video return ordered.GroupBy(v => new {v.Name, v.Year}).Select(group => new VideoInfo { Name = folderName, + Year = group.First().Year, Files = group.First().Files, AlternateVersions = group.Skip(1).Select(i => i.Files[0]).ToList(), Extras = group.First().Extras.Concat(group.Skip(1).SelectMany(i => i.Extras)).ToList() |
