From 6f20e217ee8ebefb3577c6d2000d8a364078e4a5 Mon Sep 17 00:00:00 2001 From: baliasnyifeliks Date: Tue, 3 Feb 2026 20:59:53 +0200 Subject: [PATCH] feat(makhno): add streaming link support for episodes --- Makhno/Controller.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makhno/Controller.cs b/Makhno/Controller.cs index 6bf24b6..157b1f0 100644 --- a/Makhno/Controller.cs +++ b/Makhno/Controller.cs @@ -245,7 +245,16 @@ namespace Makhno if (!string.IsNullOrEmpty(episode.File)) { string episodeLink = $"{host}/makhno/play?imdb_id={imdb_id}&title={HttpUtility.UrlEncode(title)}&original_title={HttpUtility.UrlEncode(original_title)}&year={year}&season={season}&t={selectedVoice}&episodeId={episode.Id}"; - episode_tpl.Append(episode.Title, title ?? original_title, season.ToString(), (i + 1).ToString("D2"), episodeLink, "call"); + string streamLink = $"{episodeLink}&play=true"; + episode_tpl.Append( + episode.Title, + title ?? original_title, + season.ToString(), + (i + 1).ToString("D2"), + accsArgs(episodeLink), + "call", + streamlink: accsArgs(streamLink) + ); } } }