From 47cee13694b238b16ade7ffab7baa8e258e02104 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 13 Dec 2025 12:05:45 +0200 Subject: [PATCH] refactor: Reorder `animeId` and `translations` segments in fundubs API endpoint path. --- 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 d9fc2e9..b2c759d 100644 --- a/AnimeON/AnimeONInvoke.cs +++ b/AnimeON/AnimeONInvoke.cs @@ -86,7 +86,7 @@ namespace AnimeON public async Task> GetFundubs(int animeId) { - string fundubsUrl = $"{_init.host}/api/player/translations/{animeId}"; + string fundubsUrl = $"{_init.host}/api/player/{animeId}/translations"; _onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {fundubsUrl}"); string fundubsJson = await Http.Get(fundubsUrl, headers: new List() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get()); if (string.IsNullOrEmpty(fundubsJson)) diff --git a/AnimeON/Controller.cs b/AnimeON/Controller.cs index 1899857..74df8ab 100644 --- a/AnimeON/Controller.cs +++ b/AnimeON/Controller.cs @@ -181,7 +181,7 @@ namespace AnimeON.Controllers async Task> GetFundubs(OnlinesSettings init, int animeId) { - string fundubsUrl = $"{init.host}/api/player/translations/{animeId}"; + string fundubsUrl = $"{init.host}/api/player/{animeId}/translations"; string fundubsJson = await Http.Get(fundubsUrl, headers: new List() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) }); if (string.IsNullOrEmpty(fundubsJson)) return null;