mirror of
https://github.com/p-stream/providers.git
synced 2026-01-11 20:10:33 +00:00
fix lookmovie?
This commit is contained in:
parent
5288b3b72e
commit
c0d5fb797f
2 changed files with 4 additions and 4 deletions
|
|
@ -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 },
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue