mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-25 07:51:51 +01:00
👌 IMPROVE: Update code for review
This commit is contained in:
parent
8dcb954fdf
commit
a442baa5e0
@ -102,7 +102,7 @@ export const superStreamScraper: MWMediaProvider = {
|
|||||||
media: MWPortableMedia,
|
media: MWPortableMedia,
|
||||||
): Promise<MWProviderMediaResult> {
|
): Promise<MWProviderMediaResult> {
|
||||||
let apiQuery: any;
|
let apiQuery: any;
|
||||||
if (media.episodeId) {
|
if (media.mediaType == MWMediaType.MOVIE) {
|
||||||
apiQuery = {
|
apiQuery = {
|
||||||
module: "TV_detail_1",
|
module: "TV_detail_1",
|
||||||
display_all: "1",
|
display_all: "1",
|
||||||
@ -151,10 +151,12 @@ export const superStreamScraper: MWMediaProvider = {
|
|||||||
episodeId: "1",
|
episodeId: "1",
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (query.type === "movie") {
|
if (query.type === MWMediaType.MOVIE) {
|
||||||
return movieResults;
|
return movieResults;
|
||||||
}
|
} else if (query.type === MWMediaType.SERIES) {
|
||||||
return seriesResults;
|
return seriesResults;
|
||||||
|
}
|
||||||
|
return [];
|
||||||
},
|
},
|
||||||
|
|
||||||
async getStream(media: MWPortableMedia): Promise<MWMediaStream> {
|
async getStream(media: MWPortableMedia): Promise<MWMediaStream> {
|
||||||
|
Loading…
Reference in New Issue
Block a user