mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
feat(lookmovie): add captions support
This commit is contained in:
@@ -10,8 +10,8 @@ async function universalScraper(ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
||||
if (!lookmovieData) throw new NotFoundError('Media not found');
|
||||
|
||||
ctx.progress(30);
|
||||
const videoUrl = await scrape(ctx, ctx.media, lookmovieData);
|
||||
if (!videoUrl) throw new NotFoundError('No video found');
|
||||
const video = await scrape(ctx, ctx.media, lookmovieData);
|
||||
if (!video.playlist) throw new NotFoundError('No video found');
|
||||
|
||||
ctx.progress(60);
|
||||
|
||||
@@ -20,10 +20,10 @@ async function universalScraper(ctx: MovieScrapeContext | ShowScrapeContext): Pr
|
||||
stream: [
|
||||
{
|
||||
id: 'primary',
|
||||
playlist: videoUrl,
|
||||
playlist: video.playlist,
|
||||
type: 'hls',
|
||||
flags: [flags.IP_LOCKED],
|
||||
captions: [],
|
||||
captions: video.captions,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user