mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-04-16 17:32:20 +00:00
fix: Update fundubs API endpoint path from /fundubs to /translations
This commit is contained in:
parent
d2af6fca51
commit
2d6bc73dd7
@ -86,7 +86,7 @@ namespace AnimeON
|
||||
|
||||
public async Task<List<FundubModel>> GetFundubs(int animeId)
|
||||
{
|
||||
string fundubsUrl = $"{_init.host}/api/player/fundubs/{animeId}";
|
||||
string fundubsUrl = $"{_init.host}/api/player/translations/{animeId}";
|
||||
_onLog($"AnimeON: using proxy {_proxyManager.CurrentProxyIp} for {fundubsUrl}");
|
||||
string fundubsJson = await Http.Get(fundubsUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", _init.host) }, proxy: _proxyManager.Get());
|
||||
if (string.IsNullOrEmpty(fundubsJson))
|
||||
|
||||
@ -181,7 +181,7 @@ namespace AnimeON.Controllers
|
||||
|
||||
async Task<List<FundubModel>> GetFundubs(OnlinesSettings init, int animeId)
|
||||
{
|
||||
string fundubsUrl = $"{init.host}/api/player/fundubs/{animeId}";
|
||||
string fundubsUrl = $"{init.host}/api/player/translations/{animeId}";
|
||||
string fundubsJson = await Http.Get(fundubsUrl, headers: new List<HeadersModel>() { new HeadersModel("User-Agent", "Mozilla/5.0"), new HeadersModel("Referer", init.host) });
|
||||
if (string.IsNullOrEmpty(fundubsJson))
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user