From b91e7b0eac88203f636d2b096cef8a4044558906 Mon Sep 17 00:00:00 2001 From: baliasnyifeliks Date: Wed, 4 Feb 2026 08:45:49 +0200 Subject: [PATCH] feat(makhno): add special handling for ashdi.vip URLs When episode URLs contain 'ashdi.vip', use HostStreamProxy to generate the play URL instead of the standard accsArgs call URL method. This provides better compatibility with this specific streaming provider. --- UAKino/Controller.cs | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/UAKino/Controller.cs b/UAKino/Controller.cs index 7dc3909..e4ed739 100644 --- a/UAKino/Controller.cs +++ b/UAKino/Controller.cs @@ -90,15 +90,29 @@ namespace UAKino.Controllers int episodeNumber = UAKinoInvoke.TryParseEpisodeNumber(ep.Title) ?? index; string episodeName = string.IsNullOrEmpty(ep.Title) ? $"Епізод {episodeNumber}" : ep.Title; string callUrl = $"{host}/uakino/play?url={HttpUtility.UrlEncode(ep.Url)}&title={HttpUtility.UrlEncode(title ?? original_title)}"; - episode_tpl.Append( - episodeName, - title ?? original_title, - "1", - episodeNumber.ToString("D2"), - accsArgs(callUrl), - "call", - streamlink: accsArgs($"{callUrl}&play=true") - ); + if (!string.IsNullOrEmpty(ep.Url) && ep.Url.Contains("ashdi.vip", StringComparison.OrdinalIgnoreCase)) + { + string playUrl = HostStreamProxy(init, accsArgs(ep.Url)); + episode_tpl.Append( + episodeName, + title ?? original_title, + "1", + episodeNumber.ToString("D2"), + playUrl + ); + } + else + { + episode_tpl.Append( + episodeName, + title ?? original_title, + "1", + episodeNumber.ToString("D2"), + accsArgs(callUrl), + "call", + streamlink: accsArgs($"{callUrl}&play=true") + ); + } index++; }