fix lookmovie?

This commit is contained in:
Pas 2025-08-17 11:28:46 -06:00
parent 5288b3b72e
commit c0d5fb797f
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ export async function searchAndFindMedia(
media: MovieMedia | ShowMedia,
): Promise<ResultItem | undefined> {
if (media.type === 'show') {
const searchRes = await ctx.fetcher<Result>(`/v1/shows`, {
const searchRes = await ctx.proxiedFetcher<Result>(`/v1/shows`, {
baseUrl,
query: { 'filters[q]': media.title },
});
@ -24,7 +24,7 @@ export async function searchAndFindMedia(
return result;
}
if (media.type === 'movie') {
const searchRes = await ctx.fetcher<Result>(`/v1/movies`, {
const searchRes = await ctx.proxiedFetcher<Result>(`/v1/movies`, {
baseUrl,
query: { 'filters[q]': media.title },
});
@ -41,7 +41,7 @@ export async function scrape(ctx: ScrapeContext, media: MovieMedia | ShowMedia,
if (media.type === 'movie') {
id = result.id_movie;
} else if (media.type === 'show') {
const data = await ctx.fetcher<ShowDataResult>(`/v1/shows`, {
const data = await ctx.proxiedFetcher<ShowDataResult>(`/v1/shows`, {
baseUrl,
query: { expand: 'episodes', id: result.id_show },
});

View file

@ -18,7 +18,7 @@ export async function getVideoSources(
} else if (media.type === 'movie') {
path = `/v1/movies/view`;
}
const data = await ctx.fetcher<StreamsDataResult>(path, {
const data = await ctx.proxiedFetcher<StreamsDataResult>(path, {
baseUrl,
query: { expand: 'streams,subtitles', id },
});