Fix similar items endpoint for movies and TV
This commit is contained in:
parent
e9db47cd20
commit
f4d1e33010
|
@ -732,9 +732,6 @@ namespace Jellyfin.Api.Controllers
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// For non series and movie types these columns are typically null
|
|
||||||
isSeries = null;
|
|
||||||
isMovie = null;
|
|
||||||
includeItemTypes.Add(item.GetType().Name);
|
includeItemTypes.Add(item.GetType().Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -742,8 +739,6 @@ namespace Jellyfin.Api.Controllers
|
||||||
{
|
{
|
||||||
Limit = limit,
|
Limit = limit,
|
||||||
IncludeItemTypes = includeItemTypes.ToArray(),
|
IncludeItemTypes = includeItemTypes.ToArray(),
|
||||||
IsMovie = isMovie,
|
|
||||||
IsSeries = isSeries,
|
|
||||||
SimilarTo = item,
|
SimilarTo = item,
|
||||||
DtoOptions = dtoOptions,
|
DtoOptions = dtoOptions,
|
||||||
EnableTotalRecordCount = !isMovie ?? true,
|
EnableTotalRecordCount = !isMovie ?? true,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user