Cody Robibero пре 10 месеци
родитељ
комит
4f746c40d7

+ 2 - 2
Jellyfin.Api/Controllers/LiveTvController.cs

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

+ 3 - 1
Jellyfin.Api/Models/LiveTvDtos/GetProgramsDto.cs

@@ -1,5 +1,6 @@
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
+using System.ComponentModel;
 using System.Text.Json.Serialization;
 using System.Text.Json.Serialization;
 using Jellyfin.Data.Enums;
 using Jellyfin.Data.Enums;
 using Jellyfin.Extensions.Json.Converters;
 using Jellyfin.Extensions.Json.Converters;
@@ -121,6 +122,7 @@ public class GetProgramsDto
     /// <summary>
     /// <summary>
     /// Gets or sets a value indicating whether retrieve total record count.
     /// Gets or sets a value indicating whether retrieve total record count.
     /// </summary>
     /// </summary>
+    [DefaultValue(true)]
     public bool EnableTotalRecordCount { get; set; } = true;
     public bool EnableTotalRecordCount { get; set; } = true;
 
 
     /// <summary>
     /// <summary>
@@ -147,7 +149,7 @@ public class GetProgramsDto
     /// <summary>
     /// <summary>
     /// Gets or sets filter by library series id.
     /// Gets or sets filter by library series id.
     /// </summary>
     /// </summary>
-    public Guid LibrarySeriesId { get; set; }
+    public Guid? LibrarySeriesId { get; set; }
 
 
     /// <summary>
     /// <summary>
     /// Gets or sets specify additional fields of information to return in the output.
     /// Gets or sets specify additional fields of information to return in the output.