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:
baliasnyifeliks 2026-01-13 15:01:49 +02:00
parent cfc0539f9f
commit c9442a20c7

View File

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