From c9442a20c7a5f8f11b33b156272181f7b7bc90c9 Mon Sep 17 00:00:00 2001 From: baliasnyifeliks Date: Tue, 13 Jan 2026 15:01:49 +0200 Subject: [PATCH] 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. --- StarLight/Controller.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StarLight/Controller.cs b/StarLight/Controller.cs index 71ce4bc..0d793a3 100644 --- a/StarLight/Controller.cs +++ b/StarLight/Controller.cs @@ -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()); }