From 2e3ee285036e591b9400f16ea03865b552394d37 Mon Sep 17 00:00:00 2001 From: erynith <135774005+erynith@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:15:16 -0500 Subject: [PATCH] Update search.ts --- src/providers/sources/flixhq/search.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/providers/sources/flixhq/search.ts b/src/providers/sources/flixhq/search.ts index d90a9a5..50efaf4 100644 --- a/src/providers/sources/flixhq/search.ts +++ b/src/providers/sources/flixhq/search.ts @@ -18,18 +18,18 @@ export async function getFlixhqId(ctx: ScrapeContext, media: MovieMedia | ShowMe const id = query.find('div.film-poster > a').attr('href')?.slice(1); const title = query.find('div.film-detail > h2 > a').attr('title'); const year = query.find('div.film-detail > div.fd-infor > span:nth-child(1)').text(); - const seasons = year.includes('SS') ? parseInt(year.split('SS')[1]) : 0; + const seasons = year.includes('SS') ? year.split('SS')[1] : "0"; if (!id || !title || !year) return null; return { id, title, year: parseInt(year, 10), - seasons, + seasons: parseInt(seasons, 10), }; }); - const matchingItem = items.find(v => { + const matchingItem = items.find((v) => { if (!v) return false; if (media.type === 'movie') {