👌 IMPROVE: Update code for review

This commit is contained in:
cloud 2022-12-05 07:49:00 -07:00
parent 8dcb954fdf
commit a442baa5e0

View file

@ -102,7 +102,7 @@ export const superStreamScraper: MWMediaProvider = {
media: MWPortableMedia,
): Promise<MWProviderMediaResult> {
let apiQuery: any;
if (media.episodeId) {
if (media.mediaType == MWMediaType.MOVIE) {
apiQuery = {
module: "TV_detail_1",
display_all: "1",
@ -151,10 +151,12 @@ export const superStreamScraper: MWMediaProvider = {
episodeId: "1",
}));
if (query.type === "movie") {
if (query.type === MWMediaType.MOVIE) {
return movieResults;
}
} else if (query.type === MWMediaType.SERIES) {
return seriesResults;
}
return [];
},
async getStream(media: MWPortableMedia): Promise<MWMediaStream> {