From 17d3da18b9d415f51af9d2093783b1b7ef869bbd Mon Sep 17 00:00:00 2001 From: cloud <62519659+lem6ns@users.noreply.github.com> Date: Mon, 5 Dec 2022 13:36:26 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Wrong=20title=20&=20more?= =?UTF-8?q?=20qualities=20to=20fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/providers/list/superstream/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/providers/list/superstream/index.ts b/src/providers/list/superstream/index.ts index 65f9b408..34605303 100644 --- a/src/providers/list/superstream/index.ts +++ b/src/providers/list/superstream/index.ts @@ -105,7 +105,7 @@ export const superStreamScraper: MWMediaProvider = { media: MWPortableMedia, ): Promise { let apiQuery: any; - if (media.mediaType === MWMediaType.MOVIE) { + if (media.mediaType === MWMediaType.SERIES) { apiQuery = { module: "TV_detail_1", display_all: "1", @@ -175,7 +175,9 @@ export const superStreamScraper: MWMediaProvider = { const mediaRes = (await get(apiQuery).then((r) => r.json())).data; const hdQuality = mediaRes.list.find((quality: any) => quality.quality === "1080p") ?? - mediaRes.list.find((quality: any) => quality.quality === "720p"); + mediaRes.list.find((quality: any) => quality.quality === "720p") ?? + mediaRes.list.find((quality: any) => quality.quality === "480p") ?? + mediaRes.list.find((quality: any) => quality.quality === "360p"); const subtitleApiQuery = { fid: hdQuality.fid,