mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-25 06:27:15 -04:00
Review notes to set value to Datetime min value instead of null
This commit is contained in:
parent
7a17de84d9
commit
e3ff473bd4
3 changed files with 5 additions and 5 deletions
|
@ -156,7 +156,7 @@ namespace Emby.Server.Implementations.TV
|
||||||
return i.Item1 != DateTime.MinValue;
|
return i.Item1 != DateTime.MinValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alwaysEnableFirstEpisode || (i.Item1 != DateTime.MinValue && (request.NextUpDateCutoff is null || i.Item1.Date > request.NextUpDateCutoff)))
|
if (alwaysEnableFirstEpisode || (i.Item1 != DateTime.MinValue && i.Item1.Date >= request.NextUpDateCutoff))
|
||||||
{
|
{
|
||||||
anyFound = true;
|
anyFound = true;
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -65,7 +65,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
/// <param name="imageTypeLimit">Optional. The max number of images to return, per image type.</param>
|
||||||
/// <param name="enableImageTypes">Optional. The image types to include in the output.</param>
|
/// <param name="enableImageTypes">Optional. The image types to include in the output.</param>
|
||||||
/// <param name="enableUserData">Optional. Include user data.</param>
|
/// <param name="enableUserData">Optional. Include user data.</param>
|
||||||
/// <param name="nextUpDateCutoff">Optional. Starting date of shows to show in Next Up section.</param>
|
/// <param name="nextUpDateCutoff">Starting date of shows to show in Next Up section.</param>
|
||||||
/// <param name="enableTotalRecordCount">Whether to enable the total records count. Defaults to true.</param>
|
/// <param name="enableTotalRecordCount">Whether to enable the total records count. Defaults to true.</param>
|
||||||
/// <param name="disableFirstEpisode">Whether to disable sending the first episode in a series as next up.</param>
|
/// <param name="disableFirstEpisode">Whether to disable sending the first episode in a series as next up.</param>
|
||||||
/// <returns>A <see cref="QueryResult{BaseItemDto}"/> with the next up episodes.</returns>
|
/// <returns>A <see cref="QueryResult{BaseItemDto}"/> with the next up episodes.</returns>
|
||||||
|
@ -100,7 +100,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
UserId = userId ?? Guid.Empty,
|
UserId = userId ?? Guid.Empty,
|
||||||
EnableTotalRecordCount = enableTotalRecordCount,
|
EnableTotalRecordCount = enableTotalRecordCount,
|
||||||
DisableFirstEpisode = disableFirstEpisode,
|
DisableFirstEpisode = disableFirstEpisode,
|
||||||
NextUpDateCutoff = nextUpDateCutoff
|
NextUpDateCutoff = nextUpDateCutoff ?? DateTime.MinValue
|
||||||
},
|
},
|
||||||
options);
|
options);
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace MediaBrowser.Model.Querying
|
||||||
EnableImageTypes = Array.Empty<ImageType>();
|
EnableImageTypes = Array.Empty<ImageType>();
|
||||||
EnableTotalRecordCount = true;
|
EnableTotalRecordCount = true;
|
||||||
DisableFirstEpisode = false;
|
DisableFirstEpisode = false;
|
||||||
NextUpDateCutoff = null;
|
NextUpDateCutoff = DateTime.MinValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -80,6 +80,6 @@ namespace MediaBrowser.Model.Querying
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating the oldest date for a show to appear in Next Up.
|
/// Gets or sets a value indicating the oldest date for a show to appear in Next Up.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime? NextUpDateCutoff { get; set; }
|
public DateTime NextUpDateCutoff { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue