mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-22 00:32:13 +00:00
suggestions from review
This commit is contained in:
parent
6fd79fb015
commit
4f746c40d7
2 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Extensions.Json.Converters;
|
||||
|
|
@ -121,6 +122,7 @@ public class GetProgramsDto
|
|||
/// <summary>
|
||||
/// Gets or sets a value indicating whether retrieve total record count.
|
||||
/// </summary>
|
||||
[DefaultValue(true)]
|
||||
public bool EnableTotalRecordCount { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -147,7 +149,7 @@ public class GetProgramsDto
|
|||
/// <summary>
|
||||
/// Gets or sets filter by library series id.
|
||||
/// </summary>
|
||||
public Guid LibrarySeriesId { get; set; }
|
||||
public Guid? LibrarySeriesId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets specify additional fields of information to return in the output.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue