mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
Update useSkipTime.ts
This commit is contained in:
parent
02f6c2876f
commit
169d1be8ab
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { useEffect, useState } from "react";
|
||||
|
||||
// import { proxiedFetch } from "@/backend/helpers/fetch";
|
||||
import { proxiedFetch } from "@/backend/helpers/fetch";
|
||||
import { usePlayerMeta } from "@/components/player/hooks/usePlayerMeta";
|
||||
import { conf } from "@/setup/config";
|
||||
import { usePreferencesStore } from "@/stores/preferences";
|
||||
|
|
@ -89,7 +90,7 @@ export function useSkipTime() {
|
|||
try {
|
||||
const apiUrl = `${INTRODB_BASE_URL}?imdb_id=${meta.imdbId}&season=${meta.season?.number}&episode=${meta.episode?.number}`;
|
||||
|
||||
const response = await fetch(apiUrl);
|
||||
const response = await proxiedFetch(apiUrl);
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error("IntroDB API request failed");
|
||||
|
|
|
|||
Loading…
Reference in a new issue