Fix superstream

This commit is contained in:
mrjvs
2023-11-01 14:53:47 +01:00
parent b5bfa9f6fa
commit dcb662e44a

View File

@@ -13,14 +13,14 @@ export const superStreamScraper = makeSourcerer({
flags: [flags.NO_CORS], flags: [flags.NO_CORS],
async scrapeShow(ctx) { async scrapeShow(ctx) {
const searchQuery = { const searchQuery = {
module: 'Search3', module: 'Search4',
page: '1', page: '1',
type: 'all', type: 'all',
keyword: ctx.media.title, keyword: ctx.media.title,
pagelimit: '20', pagelimit: '20',
}; };
const searchRes = (await sendRequest(ctx, searchQuery, true)).data; const searchRes = (await sendRequest(ctx, searchQuery, true)).data.list;
ctx.progress(33); ctx.progress(33);
const superstreamEntry = searchRes.find( const superstreamEntry = searchRes.find(
@@ -54,14 +54,14 @@ export const superStreamScraper = makeSourcerer({
}, },
async scrapeMovie(ctx) { async scrapeMovie(ctx) {
const searchQuery = { const searchQuery = {
module: 'Search3', module: 'Search4',
page: '1', page: '1',
type: 'all', type: 'all',
keyword: ctx.media.title, keyword: ctx.media.title,
pagelimit: '20', pagelimit: '20',
}; };
const searchRes = (await sendRequest(ctx, searchQuery, true)).data; const searchRes = (await sendRequest(ctx, searchQuery, true)).data.list;
ctx.progress(33); ctx.progress(33);
const superstreamEntry = searchRes.find( const superstreamEntry = searchRes.find(