Sfoglia il codice sorgente

Fix routeMediaSourceId route parameter in SubtitleController GetSubtitle

Niels van Velzen 4 anni fa
parent
commit
0a0e10e854
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Jellyfin.Api/Controllers/SubtitleController.cs

+ 1 - 1
Jellyfin.Api/Controllers/SubtitleController.cs

@@ -196,7 +196,7 @@ namespace Jellyfin.Api.Controllers
         /// <param name="startPositionTicks">The start position of the subtitle in ticks.</param>
         /// <param name="startPositionTicks">The start position of the subtitle in ticks.</param>
         /// <response code="200">File returned.</response>
         /// <response code="200">File returned.</response>
         /// <returns>A <see cref="FileContentResult"/> with the subtitle file.</returns>
         /// <returns>A <see cref="FileContentResult"/> with the subtitle file.</returns>
-        [HttpGet("Videos/{routeItemId}/routeMediaSourceId/Subtitles/{routeIndex}/Stream.{routeFormat}")]
+        [HttpGet("Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}")]
         [ProducesResponseType(StatusCodes.Status200OK)]
         [ProducesResponseType(StatusCodes.Status200OK)]
         [ProducesFile("text/*")]
         [ProducesFile("text/*")]
         public async Task<ActionResult> GetSubtitle(
         public async Task<ActionResult> GetSubtitle(