mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-06 10:49:47 +00:00
Update useSkipTime.ts
This commit is contained in:
parent
ab5f0e23f4
commit
e6f06a5e75
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { useEffect, useState } from "react";
|
||||
|
||||
// import { proxiedFetch } from "@/backend/helpers/fetch";
|
||||
import { proxiedFetch } from "@/backend/helpers/fetch";
|
||||
import { mwFetch, proxiedFetch } from "@/backend/helpers/fetch";
|
||||
import { usePlayerMeta } from "@/components/player/hooks/usePlayerMeta";
|
||||
import { conf } from "@/setup/config";
|
||||
import { usePreferencesStore } from "@/stores/preferences";
|
||||
|
|
@ -40,7 +40,7 @@ export function useSkipTime() {
|
|||
apiUrl += `&season=${meta.season.number}&episode=${meta.episode.number}`;
|
||||
}
|
||||
|
||||
const data = await proxiedFetch(apiUrl);
|
||||
const data = await mwFetch(apiUrl);
|
||||
|
||||
if (data && typeof data.end_ms === "number") {
|
||||
// Convert milliseconds to seconds
|
||||
|
|
|
|||
Loading…
Reference in a new issue