Merge pull request #17399 from Shadowghost/fix-extra-year

Fix incorrect year on local trailers
This commit is contained in:
Cody Robibero
2026-07-25 12:52:51 -04:00
committed by GitHub
22 changed files with 264 additions and 29 deletions
@@ -45,7 +45,7 @@ namespace Emby.Server.Implementations.Sorting
return x.PremiereDate.Value;
}
if (x.ProductionYear.HasValue)
if (x.ProductionYear is not null)
{
try
{
@@ -39,7 +39,7 @@ namespace Emby.Server.Implementations.Sorting
return 0;
}
if (x.ProductionYear.HasValue)
if (x.ProductionYear is not null)
{
return x.ProductionYear.Value;
}