diff --git a/front/packages/ui/src/components/media-info.tsx b/front/packages/ui/src/components/media-info.tsx index 22c8db9e..34328200 100644 --- a/front/packages/ui/src/components/media-info.tsx +++ b/front/packages/ui/src/components/media-info.tsx @@ -122,6 +122,6 @@ export const MediaInfoPopup = ({ }; MediaInfoPopup.query = (mediaType: string, mediaSlug: string): QueryIdentifier => ({ - path: ["video", mediaType, mediaSlug, "info"], + path: [mediaType, mediaSlug, "info"], parser: WatchInfoP, }); diff --git a/front/packages/ui/src/downloads/index.web.tsx b/front/packages/ui/src/downloads/index.web.tsx index 12829832..4b4bd7ef 100644 --- a/front/packages/ui/src/downloads/index.web.tsx +++ b/front/packages/ui/src/downloads/index.web.tsx @@ -41,7 +41,7 @@ export const useDownloader = () => { // TODO: This methods does not work with auth. const a = document.createElement("a"); a.style.display = "none"; - a.href = `${kyooApiUrl}/video/${type}/${slug}/direct`; + a.href = `${kyooApiUrl}/${type}/${slug}/direct`; a.download = `${slug}.${info.extension}`; document.body.appendChild(a); a.click(); diff --git a/front/packages/ui/src/downloads/state.tsx b/front/packages/ui/src/downloads/state.tsx index 7fc80b45..d07afd9e 100644 --- a/front/packages/ui/src/downloads/state.tsx +++ b/front/packages/ui/src/downloads/state.tsx @@ -185,7 +185,7 @@ const download = ( const task = RNBackgroundDownloader.download({ id: id, // TODO: support variant qualities - url: `${account.apiUrl}/video/${type}/${slug}/direct`, + url: `${account.apiUrl}/${type}/${slug}/direct`, destination: path, headers: { Authorization: account.token.access_token, diff --git a/front/packages/ui/src/player/components/scrubber.tsx b/front/packages/ui/src/player/components/scrubber.tsx index f8a2ea33..e2757312 100644 --- a/front/packages/ui/src/player/components/scrubber.tsx +++ b/front/packages/ui/src/player/components/scrubber.tsx @@ -94,7 +94,7 @@ export const useScrubber = (url: string) => { }; useScrubber.query = (url: string): QueryIdentifier => ({ - path: ["video", url, "thumbnails.vtt"], + path: [url, "thumbnails.vtt"], parser: null!, options: { plainText: true, diff --git a/front/packages/ui/src/player/index.tsx b/front/packages/ui/src/player/index.tsx index be4fd13a..7af4870e 100644 --- a/front/packages/ui/src/player/index.tsx +++ b/front/packages/ui/src/player/index.tsx @@ -193,7 +193,7 @@ Player.query = (type: "episode" | "movie", slug: string): QueryIdentifier }; Player.infoQuery = (type: "episode" | "movie", slug: string): QueryIdentifier => ({ - path: ["video", type, slug, "info"], + path: [type, slug, "info"], parser: WatchInfoP, });