refactor(controllers): rename search result variables for consistency

Rename variables used to store search results across multiple controllers
to follow a consistent naming pattern (checkSeasons, checkEpisodes, checkResults)
instead of generic names like seasons, episodesInfo, and searchResults.
This improves code readability and maintains uniform variable naming
across the codebase.
This commit is contained in:
baliasnyifeliks 2026-02-06 17:18:04 +02:00
parent 371a54f759
commit 630c91e53b
3 changed files with 6 additions and 6 deletions

View File

@ -43,8 +43,8 @@ namespace AnimeON.Controllers
if (AppInit.conf?.online?.checkOnlineSearch != true)
return OnError("animeon", proxyManager);
var seasons = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial);
if (seasons != null && seasons.Count > 0)
var checkSeasons = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial);
if (checkSeasons != null && checkSeasons.Count > 0)
return Content("data-json=", "text/plain; charset=utf-8");
return OnError("animeon", proxyManager);

View File

@ -42,8 +42,8 @@ namespace CikavaIdeya.Controllers
if (AppInit.conf?.online?.checkOnlineSearch != true)
return OnError("cikavaideya", proxyManager);
var episodesInfo = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial == 0);
if (episodesInfo != null && episodesInfo.Count > 0)
var checkEpisodes = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial == 0);
if (checkEpisodes != null && checkEpisodes.Count > 0)
return Content("data-json=", "text/plain; charset=utf-8");
return OnError("cikavaideya", proxyManager);

View File

@ -39,8 +39,8 @@ namespace Mikai.Controllers
if (AppInit.conf?.online?.checkOnlineSearch != true)
return OnError("mikai", _proxyManager);
var searchResults = await invoke.Search(title, original_title, year);
if (searchResults != null && searchResults.Count > 0)
var checkResults = await invoke.Search(title, original_title, year);
if (checkResults != null && checkResults.Count > 0)
return Content("data-json=", "text/plain; charset=utf-8");
return OnError("mikai", _proxyManager);