The Free Software Media System - Server Backend & API
Remove some deprecated API members
Niels van Velzen874fd9ac0a24
diff --git a/Jellyfin.Api/Controllers/ConfigurationController.cs b/Jellyfin.Api/Controllers/ConfigurationController.csindex 8dcaebf6db..9e03fbeb06 100644--- a/Jellyfin.Api/Controllers/ConfigurationController.cs+++ b/Jellyfin.Api/Controllers/ConfigurationController.cs@@ -3,8 +3,6 @@ using System.ComponentModel.DataAnnotations;using System.Net.Mime;using System.Text.Json;using Jellyfin.Api.Attributes;-using Jellyfin.Api.Constants;-using Jellyfin.Api.Models.ConfigurationDtos;using Jellyfin.Extensions.Json;using MediaBrowser.Common.Api;using MediaBrowser.Controller.Configuration;@@ -143,22 +141,4 @@ public class ConfigurationController : BaseJellyfinApiControllerreturn NoContent();}-- /// <summary>- /// Updates the path to the media encoder.- /// </summary>- /// <param name="mediaEncoderPath">Media encoder path form body.</param>- /// <response code="204">Media encoder path updated.</response>- /// <returns>Status.</returns>- [Obsolete("This endpoint is obsolete.")]- [ApiExplorerSettings(IgnoreApi = true)]- [HttpPost("MediaEncoder/Path")]- [Authorize(Policy = Policies.FirstTimeSetupOrElevated)]- [ProducesResponseType(StatusCodes.Status204NoContent)]- public ActionResult UpdateMediaEncoderPath([FromBody, Required] MediaEncoderPathDto mediaEncoderPath)- {- // API ENDPOINT DISABLED (NOOP) FOR SECURITY PURPOSES- // _mediaEncoder.UpdateEncoderPath(mediaEncoderPath.Path, mediaEncoderPath.PathType);- return NoContent();- }}diff --git a/Jellyfin.Api/Controllers/EnvironmentController.cs b/Jellyfin.Api/Controllers/EnvironmentController.csindex 284a97621d..70a8c72c0f 100644--- a/Jellyfin.Api/Controllers/EnvironmentController.cs+++ b/Jellyfin.Api/Controllers/EnvironmentController.cs@@ -128,20 +128,6 @@ public class EnvironmentController : BaseJellyfinApiControllerreturn NoContent();}- /// <summary>- /// Gets network paths.- /// </summary>- /// <response code="200">Empty array returned.</response>- /// <returns>List of entries.</returns>- [Obsolete("This endpoint is obsolete.")]- [HttpGet("NetworkShares")]- [ProducesResponseType(StatusCodes.Status200OK)]- public ActionResult<IEnumerable<FileSystemEntryInfo>> GetNetworkShares()- {- _logger.LogWarning("Obsolete endpoint accessed: /Environment/NetworkShares");- return Array.Empty<FileSystemEntryInfo>();- }-/// <summary>/// Gets available drives from the server's file system./// </summary>diff --git a/Jellyfin.Api/Controllers/QuickConnectController.cs b/Jellyfin.Api/Controllers/QuickConnectController.csindex 14f5265aa7..2a15ff767c 100644--- a/Jellyfin.Api/Controllers/QuickConnectController.cs+++ b/Jellyfin.Api/Controllers/QuickConnectController.cs@@ -65,16 +65,6 @@ public class QuickConnectController : BaseJellyfinApiController}}- /// <summary>- /// Old version of <see cref="InitiateQuickConnect" /> using a GET method.- /// Still available to avoid breaking compatibility.- /// </summary>- /// <returns>The result of <see cref="InitiateQuickConnect" />.</returns>- [Obsolete("Use POST request instead")]- [HttpGet("Initiate")]- [ApiExplorerSettings(IgnoreApi = true)]- public Task<ActionResult<QuickConnectResult>> InitiateQuickConnectLegacy() => InitiateQuickConnect();-/// <summary>/// Attempts to retrieve authentication information./// </summary>diff --git a/Jellyfin.Api/Controllers/TvShowsController.cs b/Jellyfin.Api/Controllers/TvShowsController.csindex 2817e3cbc7..bd6d931b21 100644--- a/Jellyfin.Api/Controllers/TvShowsController.cs+++ b/Jellyfin.Api/Controllers/TvShowsController.cs@@ -69,7 +69,6 @@ public class TvShowsController : BaseJellyfinApiController/// <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="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="enableResumable">Whether to include resumable episodes in next up results.</param>/// <param name="enableRewatching">Whether to include watched episodes in next up results.</param>/// <returns>A <see cref="QueryResult{BaseItemDto}"/> with the next up episodes.</returns>@@ -88,7 +87,6 @@ public class TvShowsController : BaseJellyfinApiController[FromQuery] bool? enableUserData,[FromQuery] DateTime? nextUpDateCutoff,[FromQuery] bool enableTotalRecordCount = true,- [FromQuery][ParameterObsolete] bool disableFirstEpisode = false,[FromQuery] bool enableResumable = true,[FromQuery] bool enableRewatching = false){diff --git a/Jellyfin.Api/Controllers/UserController.cs b/Jellyfin.Api/Controllers/UserController.csindex d0ced277a0..536b95dbb5 100644--- a/Jellyfin.Api/Controllers/UserController.cs+++ b/Jellyfin.Api/Controllers/UserController.cs@@ -337,29 +337,6 @@ public class UserController : BaseJellyfinApiController[FromBody, Required] UpdateUserPassword request)=> UpdateUserPassword(userId, request);- /// <summary>- /// Updates a user's easy password.- /// </summary>- /// <param name="userId">The user id.</param>- /// <param name="request">The <see cref="UpdateUserEasyPassword"/> request.</param>- /// <response code="204">Password successfully reset.</response>- /// <response code="403">User is not allowed to update the password.</response>- /// <response code="404">User not found.</response>- /// <returns>A <see cref="NoContentResult"/> indicating success or a <see cref="ForbidResult"/> or a <see cref="NotFoundResult"/> on failure.</returns>- [HttpPost("{userId}/EasyPassword")]- [Obsolete("Use Quick Connect instead")]- [ApiExplorerSettings(IgnoreApi = true)]- [Authorize]- [ProducesResponseType(StatusCodes.Status204NoContent)]- [ProducesResponseType(StatusCodes.Status403Forbidden)]- [ProducesResponseType(StatusCodes.Status404NotFound)]- public ActionResult UpdateUserEasyPassword(- [FromRoute, Required] Guid userId,- [FromBody, Required] UpdateUserEasyPassword request)- {- return Forbid();- }-/// <summary>/// Updates a user./// </summary>diff --git a/Jellyfin.Api/Models/ConfigurationDtos/MediaEncoderPathDto.cs b/Jellyfin.Api/Models/ConfigurationDtos/MediaEncoderPathDto.csdeleted file mode 100644index 5a48345eb6..0000000000--- a/Jellyfin.Api/Models/ConfigurationDtos/MediaEncoderPathDto.cs+++ /dev/null@@ -1,17 +0,0 @@-namespace Jellyfin.Api.Models.ConfigurationDtos;--/// <summary>-/// Media Encoder Path Dto.-/// </summary>-public class MediaEncoderPathDto-{- /// <summary>- /// Gets or sets media encoder path.- /// </summary>- public string Path { get; set; } = null!;-- /// <summary>- /// Gets or sets media encoder path type.- /// </summary>- public string PathType { get; set; } = null!;-}diff --git a/Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs b/Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.csindex 9c29e372cf..2a1a312d54 100644--- a/Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs+++ b/Jellyfin.Api/Models/StartupDtos/StartupRemoteAccessDto.cs@@ -1,4 +1,3 @@-using System;using System.ComponentModel.DataAnnotations;namespace Jellyfin.Api.Models.StartupDtos;@@ -13,11 +12,4 @@ public class StartupRemoteAccessDto/// </summary>[Required]public bool EnableRemoteAccess { get; set; }-- /// <summary>- /// Gets or sets a value indicating whether enable automatic port mapping.- /// </summary>- [Required]- [Obsolete("No longer supported")]- public bool EnableAutomaticPortMapping { get; set; }}diff --git a/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs b/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.csdeleted file mode 100644index f19d0b57a1..0000000000--- a/Jellyfin.Api/Models/UserDtos/UpdateUserEasyPassword.cs+++ /dev/null@@ -1,22 +0,0 @@-namespace Jellyfin.Api.Models.UserDtos;--/// <summary>-/// The update user easy password request body.-/// </summary>-public class UpdateUserEasyPassword-{- /// <summary>- /// Gets or sets the new sha1-hashed password.- /// </summary>- public string? NewPassword { get; set; }-- /// <summary>- /// Gets or sets the new password.- /// </summary>- public string? NewPw { get; set; }-- /// <summary>- /// Gets or sets a value indicating whether to reset the password.- /// </summary>- public bool ResetPassword { get; set; }-}diff --git a/MediaBrowser.Model/Session/ClientCapabilities.cs b/MediaBrowser.Model/Session/ClientCapabilities.csindex fc1f24ae16..9b243c1173 100644--- a/MediaBrowser.Model/Session/ClientCapabilities.cs+++ b/MediaBrowser.Model/Session/ClientCapabilities.cs@@ -31,15 +31,5 @@ namespace MediaBrowser.Model.Sessionpublic string AppStoreUrl { get; set; }public string IconUrl { get; set; }-- // TODO: Remove after 10.9- [Obsolete("Unused")]- [DefaultValue(false)]- public bool? SupportsContentUploading { get; set; } = false;-- // TODO: Remove after 10.9- [Obsolete("Unused")]- [DefaultValue(false)]- public bool? SupportsSync { get; set; } = false;}}