aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-08-12 14:41:10 -0600
committercrobibero <cody@robibe.ro>2020-08-12 14:41:10 -0600
commit687b008d59b42cdadd5d7aa53585fdd2edf6a9b2 (patch)
tree671aca2ba8946e27080cfd4e8aa10984c0627ddb
parentae1593b59029882c07f29685bee5a2caace8f32e (diff)
fix livetv id check
-rw-r--r--Jellyfin.Api/Controllers/LiveTvController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs
index c6a98fb0a..c4a7160cd 100644
--- a/Jellyfin.Api/Controllers/LiveTvController.cs
+++ b/Jellyfin.Api/Controllers/LiveTvController.cs
@@ -592,11 +592,11 @@ namespace Jellyfin.Api.Controllers
GenreIds = RequestHelpers.GetGuids(genreIds)
};
- if (!librarySeriesId.Equals(Guid.Empty))
+ if (librarySeriesId != null && !librarySeriesId.Equals(Guid.Empty))
{
query.IsSeries = true;
- if (_libraryManager.GetItemById(librarySeriesId ?? Guid.Empty) is Series series)
+ if (_libraryManager.GetItemById(librarySeriesId.Value) is Series series)
{
query.Name = series.Name;
}