mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
Update search.ts
This commit is contained in:
parent
2e3ee28503
commit
c711f168ae
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ 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') ? year.split('SS')[1] : "0";
|
||||
const seasons = year.includes('SS') ? year.split('SS')[1] : '0';
|
||||
|
||||
if (!id || !title || !year) return null;
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue