mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
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:
parent
371a54f759
commit
630c91e53b
@ -43,8 +43,8 @@ namespace AnimeON.Controllers
|
|||||||
if (AppInit.conf?.online?.checkOnlineSearch != true)
|
if (AppInit.conf?.online?.checkOnlineSearch != true)
|
||||||
return OnError("animeon", proxyManager);
|
return OnError("animeon", proxyManager);
|
||||||
|
|
||||||
var seasons = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial);
|
var checkSeasons = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial);
|
||||||
if (seasons != null && seasons.Count > 0)
|
if (checkSeasons != null && checkSeasons.Count > 0)
|
||||||
return Content("data-json=", "text/plain; charset=utf-8");
|
return Content("data-json=", "text/plain; charset=utf-8");
|
||||||
|
|
||||||
return OnError("animeon", proxyManager);
|
return OnError("animeon", proxyManager);
|
||||||
|
|||||||
@ -42,8 +42,8 @@ namespace CikavaIdeya.Controllers
|
|||||||
if (AppInit.conf?.online?.checkOnlineSearch != true)
|
if (AppInit.conf?.online?.checkOnlineSearch != true)
|
||||||
return OnError("cikavaideya", proxyManager);
|
return OnError("cikavaideya", proxyManager);
|
||||||
|
|
||||||
var episodesInfo = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial == 0);
|
var checkEpisodes = await invoke.Search(imdb_id, kinopoisk_id, title, original_title, year, serial == 0);
|
||||||
if (episodesInfo != null && episodesInfo.Count > 0)
|
if (checkEpisodes != null && checkEpisodes.Count > 0)
|
||||||
return Content("data-json=", "text/plain; charset=utf-8");
|
return Content("data-json=", "text/plain; charset=utf-8");
|
||||||
|
|
||||||
return OnError("cikavaideya", proxyManager);
|
return OnError("cikavaideya", proxyManager);
|
||||||
|
|||||||
@ -39,8 +39,8 @@ namespace Mikai.Controllers
|
|||||||
if (AppInit.conf?.online?.checkOnlineSearch != true)
|
if (AppInit.conf?.online?.checkOnlineSearch != true)
|
||||||
return OnError("mikai", _proxyManager);
|
return OnError("mikai", _proxyManager);
|
||||||
|
|
||||||
var searchResults = await invoke.Search(title, original_title, year);
|
var checkResults = await invoke.Search(title, original_title, year);
|
||||||
if (searchResults != null && searchResults.Count > 0)
|
if (checkResults != null && checkResults.Count > 0)
|
||||||
return Content("data-json=", "text/plain; charset=utf-8");
|
return Content("data-json=", "text/plain; charset=utf-8");
|
||||||
|
|
||||||
return OnError("mikai", _proxyManager);
|
return OnError("mikai", _proxyManager);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user