Allow embeds and videos to return multiple streams + add identifiers to list returns

This commit is contained in:
mrjvs
2023-12-24 19:46:12 +01:00
parent d44320e362
commit 0affe83d24
21 changed files with 142 additions and 90 deletions

View File

@@ -17,12 +17,15 @@ async function universalScraper(ctx: MovieScrapeContext | ShowScrapeContext): Pr
return {
embeds: [],
stream: {
playlist: videoUrl,
type: 'hls',
flags: [flags.IP_LOCKED],
captions: [],
},
stream: [
{
id: 'primary',
playlist: videoUrl,
type: 'hls',
flags: [flags.IP_LOCKED],
captions: [],
},
],
};
}