mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-17 01:51:24 +01:00
Gomostream can return either mp4 or m3u8
This commit is contained in:
parent
ccfd2efe90
commit
4eacd9f0c9
2 changed files with 3 additions and 2 deletions
|
@ -88,7 +88,7 @@ export const gomostreamScraper: MWMediaProvider = {
|
||||||
const index = unpacked.findIndex((e) => e === '"');
|
const index = unpacked.findIndex((e) => e === '"');
|
||||||
const streamUrl = unpacked.slice(0, index).join('');
|
const streamUrl = unpacked.slice(0, index).join('');
|
||||||
|
|
||||||
return { url: streamUrl, type: 'mp4', captions: [] };
|
return { url: streamUrl, type: streamUrl.split('.').at(-1) || "mp4", captions: [] };
|
||||||
},
|
},
|
||||||
|
|
||||||
async getSeasonDataFromMedia(media: MWPortableMedia): Promise<MWMediaSeasons> {
|
async getSeasonDataFromMedia(media: MWPortableMedia): Promise<MWMediaSeasons> {
|
||||||
|
|
|
@ -20,7 +20,8 @@ export interface MWMediaCaption {
|
||||||
}
|
}
|
||||||
export interface MWMediaStream {
|
export interface MWMediaStream {
|
||||||
url: string;
|
url: string;
|
||||||
type: MWMediaStreamType;
|
// type: MWMediaStreamType;
|
||||||
|
type: string;
|
||||||
captions: MWMediaCaption[];
|
captions: MWMediaCaption[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue