From dcb662e44ab4747707363810f990b469dd4529e0 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 1 Nov 2023 14:53:47 +0100 Subject: [PATCH 1/2] Fix superstream --- src/providers/sources/superstream/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/providers/sources/superstream/index.ts b/src/providers/sources/superstream/index.ts index 78972ea..25286da 100644 --- a/src/providers/sources/superstream/index.ts +++ b/src/providers/sources/superstream/index.ts @@ -13,14 +13,14 @@ export const superStreamScraper = makeSourcerer({ flags: [flags.NO_CORS], async scrapeShow(ctx) { const searchQuery = { - module: 'Search3', + module: 'Search4', page: '1', type: 'all', keyword: ctx.media.title, pagelimit: '20', }; - const searchRes = (await sendRequest(ctx, searchQuery, true)).data; + const searchRes = (await sendRequest(ctx, searchQuery, true)).data.list; ctx.progress(33); const superstreamEntry = searchRes.find( @@ -54,14 +54,14 @@ export const superStreamScraper = makeSourcerer({ }, async scrapeMovie(ctx) { const searchQuery = { - module: 'Search3', + module: 'Search4', page: '1', type: 'all', keyword: ctx.media.title, pagelimit: '20', }; - const searchRes = (await sendRequest(ctx, searchQuery, true)).data; + const searchRes = (await sendRequest(ctx, searchQuery, true)).data.list; ctx.progress(33); const superstreamEntry = searchRes.find( From f9f9ddf852115d26e02f769161abae8d732d9032 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 1 Nov 2023 14:54:39 +0100 Subject: [PATCH 2/2] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b6c3cf4..372849f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@movie-web/providers", - "version": "1.0.3", + "version": "1.0.4", "description": "Package that contains all the providers of movie-web", "main": "./lib/index.umd.js", "types": "./lib/index.d.ts",