fix livetv id check

pull/3861/head
crobibero 4 years ago
parent ae1593b590
commit 687b008d59

@ -592,11 +592,11 @@ namespace Jellyfin.Api.Controllers
GenreIds = RequestHelpers.GetGuids(genreIds) GenreIds = RequestHelpers.GetGuids(genreIds)
}; };
if (!librarySeriesId.Equals(Guid.Empty)) if (librarySeriesId != null && !librarySeriesId.Equals(Guid.Empty))
{ {
query.IsSeries = true; query.IsSeries = true;
if (_libraryManager.GetItemById(librarySeriesId ?? Guid.Empty) is Series series) if (_libraryManager.GetItemById(librarySeriesId.Value) is Series series)
{ {
query.Name = series.Name; query.Name = series.Name;
} }

Loading…
Cancel
Save