fix: use updated imports

This commit is contained in:
Isra 2023-10-03 16:50:54 -05:00
parent 11af17b19b
commit 856a8fcac1
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { flags } from '@/main/targets';
import { makeSourcerer } from '@/providers/base';
import { upcloudScraper } from '@/providers/embeds/upcloud';
import { getFlixhqSourceDetails, getFlixhqSources } from '@/providers/sources/flixhq/scrape';
import { getFlixhqMovieSources, getFlixhqShowSources, getFlixhqSourceDetails } from '@/providers/sources/flixhq/scrape';
import { getFlixhqId } from '@/providers/sources/flixhq/search';
import { NotFoundError } from '@/utils/errors';
@ -15,7 +15,7 @@ export const flixhqScraper = makeSourcerer({
const id = await getFlixhqId(ctx, ctx.media);
if (!id) throw new NotFoundError('no search results match');
const sources = await getFlixhqSources(ctx, ctx.media, id);
const sources = await getFlixhqMovieSources(ctx, ctx.media, id);
const upcloudStream = sources.find((v) => v.embed.toLowerCase() === 'upcloud');
if (!upcloudStream) throw new NotFoundError('upcloud stream not found for flixhq');
@ -32,7 +32,7 @@ export const flixhqScraper = makeSourcerer({
const id = await getFlixhqId(ctx, ctx.media);
if (!id) throw new NotFoundError('no search results match');
const sources = await getFlixhqSources(ctx, ctx.media, id);
const sources = await getFlixhqShowSources(ctx, ctx.media, id);
const upcloudStream = sources.find((v) => v.embed.toLowerCase() === 'server upcloud');
if (!upcloudStream) throw new NotFoundError('upcloud stream not found for flixhq');