mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-13 17:40:58 +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(() => {
|
useEffect(() => {
|
||||||
const fetchTheIntroDBTime = async (): Promise<number | null> => {
|
const fetchTheIntroDBTime = async (): Promise<number | null> => {
|
||||||
if (!meta?.imdbId) return null;
|
if (!meta?.tmdbId) return null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let apiUrl = `${THE_INTRO_DB_BASE_URL}?imdb_id=${meta.imdbId}`;
|
let apiUrl = `${THE_INTRO_DB_BASE_URL}?tmdb_id=${meta.tmdbId}`;
|
||||||
if (
|
if (
|
||||||
meta.type !== "movie" &&
|
meta.type !== "movie" &&
|
||||||
meta.season?.number &&
|
meta.season?.number &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue