mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-21 00:22:07 +00:00
Stupid lint
This commit is contained in:
parent
6748b3c2e4
commit
abc65a7bb4
1 changed files with 1 additions and 3 deletions
|
|
@ -3,8 +3,6 @@ import { SourcererOutput, makeSourcerer } from '@/providers/base';
|
||||||
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
import { MovieScrapeContext, ShowScrapeContext } from '@/utils/context';
|
||||||
import { NotFoundError } from '@/utils/errors';
|
import { NotFoundError } from '@/utils/errors';
|
||||||
|
|
||||||
import { whvxScraper } from './whvx';
|
|
||||||
|
|
||||||
async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promise<SourcererOutput> {
|
async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promise<SourcererOutput> {
|
||||||
const query = {
|
const query = {
|
||||||
title: ctx.media.title,
|
title: ctx.media.title,
|
||||||
|
|
@ -23,7 +21,7 @@ async function comboScraper(ctx: ShowScrapeContext | MovieScrapeContext): Promis
|
||||||
if (res.providers?.length === 0) throw new NotFoundError('No providers available');
|
if (res.providers?.length === 0) throw new NotFoundError('No providers available');
|
||||||
if (!res.endpoint) throw new Error('No endpoint returned');
|
if (!res.endpoint) throw new Error('No endpoint returned');
|
||||||
|
|
||||||
let embeds = res.providers.map((provider: string) => {
|
const embeds = res.providers.map((provider: string) => {
|
||||||
return {
|
return {
|
||||||
embedId: provider,
|
embedId: provider,
|
||||||
url: `${JSON.stringify(query)}|${res.endpoint}`,
|
url: `${JSON.stringify(query)}|${res.endpoint}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue