Update useSkipTime.ts

This commit is contained in:
Pas 2026-01-12 15:21:59 -07:00
parent 5b32daac60
commit ab5f0e23f4

View file

@ -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 &&