mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Merge pull request #96 from JamesHawkinss/dev
Patch SuperStream provider
This commit is contained in:
commit
cd0371e323
1 changed files with 4 additions and 2 deletions
|
@ -105,7 +105,7 @@ export const superStreamScraper: MWMediaProvider = {
|
||||||
media: MWPortableMedia,
|
media: MWPortableMedia,
|
||||||
): Promise<MWProviderMediaResult> {
|
): Promise<MWProviderMediaResult> {
|
||||||
let apiQuery: any;
|
let apiQuery: any;
|
||||||
if (media.mediaType === MWMediaType.MOVIE) {
|
if (media.mediaType === MWMediaType.SERIES) {
|
||||||
apiQuery = {
|
apiQuery = {
|
||||||
module: "TV_detail_1",
|
module: "TV_detail_1",
|
||||||
display_all: "1",
|
display_all: "1",
|
||||||
|
@ -175,7 +175,9 @@ export const superStreamScraper: MWMediaProvider = {
|
||||||
const mediaRes = (await get(apiQuery).then((r) => r.json())).data;
|
const mediaRes = (await get(apiQuery).then((r) => r.json())).data;
|
||||||
const hdQuality =
|
const hdQuality =
|
||||||
mediaRes.list.find((quality: any) => quality.quality === "1080p") ??
|
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 = {
|
const subtitleApiQuery = {
|
||||||
fid: hdQuality.fid,
|
fid: hdQuality.fid,
|
||||||
|
|
Loading…
Reference in a new issue