From e75161c557596c79c18b84a28790b9a2317bda1e Mon Sep 17 00:00:00 2001 From: danne Date: Sun, 14 Jun 2026 09:18:50 +0200 Subject: [PATCH] Deprecate the redundant /Trailers endpoint GET /Trailers is a thin alias for GET /Items with includeItemTypes=Trailer; it just forwards to the injected ItemsController. Per the PR review the agreed direction is to deprecate it rather than keep maintaining the delegation. Mark the action [Obsolete] so it is flagged as deprecated in the OpenAPI spec; clients should use the GetItems operation with includeItemTypes=Trailer instead. Re #17065 --- Jellyfin.Api/Controllers/TrailersController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Jellyfin.Api/Controllers/TrailersController.cs b/Jellyfin.Api/Controllers/TrailersController.cs index 121db66858..6bddd85337 100644 --- a/Jellyfin.Api/Controllers/TrailersController.cs +++ b/Jellyfin.Api/Controllers/TrailersController.cs @@ -122,6 +122,7 @@ public class TrailersController : BaseJellyfinApiController /// A with the trailers. [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] + [Obsolete("Use GetItems with includeItemTypes=Trailer instead.")] public async Task>> GetTrailers( [FromQuery] Guid? userId, [FromQuery] string? maxOfficialRating,