mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
return a zero score if sorted years don't match
This commit is contained in:
parent
daa532ba3f
commit
e5ead79139
1 changed files with 7 additions and 2 deletions
|
@ -133,12 +133,17 @@ namespace MediaBrowser.Server.Implementations.FileSorting
|
||||||
{
|
{
|
||||||
score++;
|
score++;
|
||||||
|
|
||||||
if (year.HasValue)
|
if (year.HasValue && series.ProductionYear.HasValue)
|
||||||
{
|
{
|
||||||
if (series.ProductionYear.HasValue && year.Value == series.ProductionYear.Value)
|
if (year.Value == series.ProductionYear.Value)
|
||||||
{
|
{
|
||||||
score++;
|
score++;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Regardless of name, return a 0 score if the years don't match
|
||||||
|
return new Tuple<Series, int>(series, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue