suggestions from review

This commit is contained in:
Cody Robibero
2024-07-25 11:18:25 -06:00
parent 6fd79fb015
commit 4f746c40d7
2 changed files with 5 additions and 3 deletions

View File

@@ -677,11 +677,11 @@ public class LiveTvController : BaseJellyfinApiController
GenreIds = body.GenreIds ?? []
};
if (!body.LibrarySeriesId.IsEmpty())
if (!body.LibrarySeriesId.IsNullOrEmpty())
{
query.IsSeries = true;
var series = _libraryManager.GetItemById<Series>(body.LibrarySeriesId);
var series = _libraryManager.GetItemById<Series>(body.LibrarySeriesId.Value);
if (series is not null)
{
query.Name = series.Name;