mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
refactor(season): rename loop variable for consistency
The loop variable `season` was renamed to `seasonInfo` to maintain consistency with the naming convention used in the rest of the codebase and improve code readability.
This commit is contained in:
parent
cfc0539f9f
commit
c9442a20c7
@ -63,8 +63,8 @@ namespace StarLight.Controllers
|
||||
var season_tpl = new SeasonTpl(project.Seasons.Count);
|
||||
for (int i = 0; i < project.Seasons.Count; i++)
|
||||
{
|
||||
var season = project.Seasons[i];
|
||||
string seasonName = string.IsNullOrEmpty(season.Title) ? $"Сезон {i + 1}" : season.Title;
|
||||
var seasonInfo = project.Seasons[i];
|
||||
string seasonName = string.IsNullOrEmpty(seasonInfo.Title) ? $"Сезон {i + 1}" : seasonInfo.Title;
|
||||
string link = $"{host}/starlight?imdb_id={imdb_id}&kinopoisk_id={kinopoisk_id}&title={HttpUtility.UrlEncode(title)}&original_title={HttpUtility.UrlEncode(original_title)}&year={year}&serial=1&s={i}&href={HttpUtility.UrlEncode(itemUrl)}";
|
||||
season_tpl.Append(seasonName, link, i.ToString());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user