From 044930e742a4cbbb5d5f280890322a59454ec29d Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 13 Dec 2025 13:13:39 +0200 Subject: [PATCH] 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. --- AnimeON/AnimeONInvoke.cs | 2 +- AnimeON/Controller.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AnimeON/AnimeONInvoke.cs b/AnimeON/AnimeONInvoke.cs index 6b6461c..4f89bfa 100644 --- a/AnimeON/AnimeONInvoke.cs +++ b/AnimeON/AnimeONInvoke.cs @@ -111,7 +111,7 @@ namespace AnimeON public async Task 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}"); string episodesJson = await Http.Get(episodesUrl, headers: new List() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get()); if (string.IsNullOrEmpty(episodesJson)) diff --git a/AnimeON/Controller.cs b/AnimeON/Controller.cs index 84d0c68..b17f787 100644 --- a/AnimeON/Controller.cs +++ b/AnimeON/Controller.cs @@ -205,7 +205,7 @@ namespace AnimeON.Controllers async Task 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() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) }); if (string.IsNullOrEmpty(episodesJson)) return null;