mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
feat(makhno): add streaming link support for episodes
This commit is contained in:
parent
a2e018c1be
commit
6f20e217ee
@ -245,7 +245,16 @@ namespace Makhno
|
|||||||
if (!string.IsNullOrEmpty(episode.File))
|
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}";
|
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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user