fix: Update metacritic apiURL (#19445)

This commit is contained in:
moppman
2025-06-24 19:25:35 +08:00
committed by GitHub
parent 19ce42fe74
commit 646f4e6851
+1 -1
View File
@@ -21,7 +21,7 @@ async function handler(ctx) {
const rootUrl = 'https://www.metacritic.com';
const rootApiUrl = 'https://backend.metacritic.com';
const apiUrl = new URL('v1/xapi/finder/metacritic/web', rootApiUrl).href;
const apiUrl = new URL('finder/metacritic/web', rootApiUrl).href;
const currentUrlObject = new URL(`/browse/${type}/all/all/all-time/${sort}/${filter ? `?${filter}` : ''}`, rootUrl);
const currentUrlParams = currentUrlObject.searchParams;