diff --git a/src/providers/sources/goojara/type.ts b/src/providers/sources/goojara/type.ts index 7227ec8..732ba4e 100644 --- a/src/providers/sources/goojara/type.ts +++ b/src/providers/sources/goojara/type.ts @@ -23,7 +23,7 @@ interface MovieConfig extends BaseConfig { } export type Config = MovieConfig | TvConfig; -export type EmbedsResult = { embedId: string; url: string; }[] +export type EmbedsResult = { embedId: string; url: string }[]; export interface Result { title: string; diff --git a/src/providers/sources/goojara/util.ts b/src/providers/sources/goojara/util.ts index f2b452b..0fcba4b 100644 --- a/src/providers/sources/goojara/util.ts +++ b/src/providers/sources/goojara/util.ts @@ -6,7 +6,7 @@ import { ScrapeContext } from '@/utils/context'; import { NotFoundError } from '@/utils/errors'; import { getEmbeds } from './getEmbeds'; -import { Result, EmbedsResult } from './type'; +import { EmbedsResult, Result } from './type'; const headersData = { accept: '*/*', @@ -32,7 +32,7 @@ export async function searchAndFindMedia( headers: headersData, method: 'POST', body: `q=${media.title}`, - }) + }); const $ = load(data); @@ -58,7 +58,11 @@ export async function searchAndFindMedia( return result; } -export async function scrapeIds(ctx: ScrapeContext, media: MovieMedia | ShowMedia, result: Result): Promise { +export async function scrapeIds( + ctx: ScrapeContext, + media: MovieMedia | ShowMedia, + result: Result, +): Promise { // Find the relevant id let id = null; if (media.type === 'movie') {