mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Add Year to the new VideoInfo
This commit is contained in:
parent
42abb5a993
commit
05ad2e9b3f
@ -184,6 +184,7 @@ namespace Emby.Naming.Video
|
|||||||
return ordered.GroupBy(v => new {v.Name, v.Year}).Select(group => new VideoInfo
|
return ordered.GroupBy(v => new {v.Name, v.Year}).Select(group => new VideoInfo
|
||||||
{
|
{
|
||||||
Name = folderName,
|
Name = folderName,
|
||||||
|
Year = group.First().Year,
|
||||||
Files = group.First().Files,
|
Files = group.First().Files,
|
||||||
AlternateVersions = group.Skip(1).Select(i => i.Files[0]).ToList(),
|
AlternateVersions = group.Skip(1).Select(i => i.Files[0]).ToList(),
|
||||||
Extras = group.First().Extras.Concat(group.Skip(1).SelectMany(i => i.Extras)).ToList()
|
Extras = group.First().Extras.Concat(group.Skip(1).SelectMany(i => i.Extras)).ToList()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user