feat(makhno): add streaming link support for episodes

This commit is contained in:
baliasnyifeliks 2026-02-03 20:59:53 +02:00
parent a2e018c1be
commit 6f20e217ee

View File

@ -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)
);
}
}
}