mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-06 08:19:16 +00:00
Update useSkipTime.ts
This commit is contained in:
parent
5b32daac60
commit
ab5f0e23f4
1 changed files with 2 additions and 2 deletions
|
|
@ -28,10 +28,10 @@ export function useSkipTime() {
|
|||
|
||||
useEffect(() => {
|
||||
const fetchTheIntroDBTime = async (): Promise<number | null> => {
|
||||
if (!meta?.imdbId) return null;
|
||||
if (!meta?.tmdbId) return null;
|
||||
|
||||
try {
|
||||
let apiUrl = `${THE_INTRO_DB_BASE_URL}?imdb_id=${meta.imdbId}`;
|
||||
let apiUrl = `${THE_INTRO_DB_BASE_URL}?tmdb_id=${meta.tmdbId}`;
|
||||
if (
|
||||
meta.type !== "movie" &&
|
||||
meta.season?.number &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue