mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
fix(api): rename fundubId to translationId in episode endpoint
The parameter name in the episode API endpoint was updated from fundubId to translationId to align with the recent API changes. This ensures consistency with the backend's new translation system. BREAKING CHANGE: The fundubId parameter is now called translationId in the episode API endpoint. Any code using this parameter must be updated accordingly.
This commit is contained in:
parent
6f2267d8a4
commit
044930e742
@ -111,7 +111,7 @@ namespace AnimeON
|
|||||||
|
|
||||||
public async Task<EpisodeModel> GetEpisodes(int animeId, int playerId, int fundubId)
|
public async Task<EpisodeModel> GetEpisodes(int animeId, int playerId, int fundubId)
|
||||||
{
|
{
|
||||||
string episodesUrl = $"{_init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&fundubId={fundubId}";
|
string episodesUrl = $"{_init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&translationId={fundubId}";
|
||||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {episodesUrl}");
|
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {episodesUrl}");
|
||||||
string episodesJson = await Http.Get(episodesUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
string episodesJson = await Http.Get(episodesUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
||||||
if (string.IsNullOrEmpty(episodesJson))
|
if (string.IsNullOrEmpty(episodesJson))
|
||||||
|
|||||||
@ -205,7 +205,7 @@ namespace AnimeON.Controllers
|
|||||||
|
|
||||||
async Task<EpisodeModel> GetEpisodes(OnlinesSettings init, int animeId, int playerId, int fundubId)
|
async Task<EpisodeModel> GetEpisodes(OnlinesSettings init, int animeId, int playerId, int fundubId)
|
||||||
{
|
{
|
||||||
string episodesUrl = $"{init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&fundubId={fundubId}";
|
string episodesUrl = $"{init.host}/api/player/{animeId}/episodes?take=100&skip=-1&playerId={playerId}&translationId={fundubId}";
|
||||||
string episodesJson = await Http.Get(episodesUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) });
|
string episodesJson = await Http.Get(episodesUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) });
|
||||||
if (string.IsNullOrEmpty(episodesJson))
|
if (string.IsNullOrEmpty(episodesJson))
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user