diff --git a/back/src/Kyoo.Core/Views/Watch/ProxyApi.cs b/back/src/Kyoo.Core/Views/Watch/ProxyApi.cs index 207700a1..0f028fc2 100644 --- a/back/src/Kyoo.Core/Views/Watch/ProxyApi.cs +++ b/back/src/Kyoo.Core/Views/Watch/ProxyApi.cs @@ -16,9 +16,11 @@ // You should have received a copy of the GNU General Public License // along with Kyoo. If not, see . +using System.Collections.Generic; using System.Threading.Tasks; using AspNetCore.Proxy; using Kyoo.Abstractions.Models.Permissions; +using Kyoo.Utils; using Microsoft.AspNetCore.Mvc; namespace Kyoo.Core.Api @@ -39,10 +41,10 @@ namespace Kyoo.Core.Api /// The return value of the transcoder. [Route("video/{**rest}")] [Permission("video", Kind.Read)] - public Task Proxy(string rest) + public Task Proxy(string rest, [FromQuery] Dictionary query) { // TODO: Use an env var to configure transcoder:7666. - return this.HttpProxyAsync($"http://transcoder:7666/{rest}"); + return this.HttpProxyAsync($"http://transcoder:7666/{rest}" + query.ToQueryString()); } } }