diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-11-21 17:19:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-21 17:19:08 -0500 |
| commit | b707d8e09d776a1dd1f0cdd6cf13cd1f3e638028 (patch) | |
| tree | 37c3a0d2bf969399102b954dbcfe0746909d10a2 /Jellyfin.Api/Controllers/VideoAttachmentsController.cs | |
| parent | da96cbaf789ff3679e1564fae27b32c44f11d67b (diff) | |
| parent | b3d322f79fb81cc8c8dfabcfd4dc12ba58489eeb (diff) | |
Merge pull request #4486 from crobibero/split-api
Remove api client generator errors
Diffstat (limited to 'Jellyfin.Api/Controllers/VideoAttachmentsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/VideoAttachmentsController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/VideoAttachmentsController.cs b/Jellyfin.Api/Controllers/VideoAttachmentsController.cs index 418c0c123..c2bb0dfff 100644 --- a/Jellyfin.Api/Controllers/VideoAttachmentsController.cs +++ b/Jellyfin.Api/Controllers/VideoAttachmentsController.cs @@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations; using System.Net.Mime; using System.Threading; using System.Threading.Tasks; +using Jellyfin.Api.Attributes; using MediaBrowser.Common.Extensions; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.MediaEncoding; @@ -43,7 +44,7 @@ namespace Jellyfin.Api.Controllers /// <response code="404">Video or attachment not found.</response> /// <returns>An <see cref="FileStreamResult"/> containing the attachment stream on success, or a <see cref="NotFoundResult"/> if the attachment could not be found.</returns> [HttpGet("{videoId}/{mediaSourceId}/Attachments/{index}")] - [Produces(MediaTypeNames.Application.Octet)] + [ProducesFile(MediaTypeNames.Application.Octet)] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] public async Task<ActionResult> GetAttachment( |
