mirror of
https://github.com/p-stream/providers.git
synced 2026-04-21 02:32:26 +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,
|
media: MovieMedia | ShowMedia,
|
||||||
): Promise<ResultItem | undefined> {
|
): Promise<ResultItem | undefined> {
|
||||||
if (media.type === 'show') {
|
if (media.type === 'show') {
|
||||||
const searchRes = await ctx.fetcher<Result>(`/v1/shows`, {
|
const searchRes = await ctx.proxiedFetcher<Result>(`/v1/shows`, {
|
||||||
baseUrl,
|
baseUrl,
|
||||||
query: { 'filters[q]': media.title },
|
query: { 'filters[q]': media.title },
|
||||||
});
|
});
|
||||||
|
|
@ -24,7 +24,7 @@ export async function searchAndFindMedia(
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
if (media.type === 'movie') {
|
if (media.type === 'movie') {
|
||||||
const searchRes = await ctx.fetcher<Result>(`/v1/movies`, {
|
const searchRes = await ctx.proxiedFetcher<Result>(`/v1/movies`, {
|
||||||
baseUrl,
|
baseUrl,
|
||||||
query: { 'filters[q]': media.title },
|
query: { 'filters[q]': media.title },
|
||||||
});
|
});
|
||||||
|
|
@ -41,7 +41,7 @@ export async function scrape(ctx: ScrapeContext, media: MovieMedia | ShowMedia,
|
||||||
if (media.type === 'movie') {
|
if (media.type === 'movie') {
|
||||||
id = result.id_movie;
|
id = result.id_movie;
|
||||||
} else if (media.type === 'show') {
|
} else if (media.type === 'show') {
|
||||||
const data = await ctx.fetcher<ShowDataResult>(`/v1/shows`, {
|
const data = await ctx.proxiedFetcher<ShowDataResult>(`/v1/shows`, {
|
||||||
baseUrl,
|
baseUrl,
|
||||||
query: { expand: 'episodes', id: result.id_show },
|
query: { expand: 'episodes', id: result.id_show },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ export async function getVideoSources(
|
||||||
} else if (media.type === 'movie') {
|
} else if (media.type === 'movie') {
|
||||||
path = `/v1/movies/view`;
|
path = `/v1/movies/view`;
|
||||||
}
|
}
|
||||||
const data = await ctx.fetcher<StreamsDataResult>(path, {
|
const data = await ctx.proxiedFetcher<StreamsDataResult>(path, {
|
||||||
baseUrl,
|
baseUrl,
|
||||||
query: { expand: 'streams,subtitles', id },
|
query: { expand: 'streams,subtitles', id },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue