mirror of
https://github.com/p-stream/providers.git
synced 2026-03-11 17:55:36 +00:00
Add progress
This commit is contained in:
parent
bbc4f60c73
commit
19f03949f4
1 changed files with 4 additions and 0 deletions
|
|
@ -8,9 +8,13 @@ async function universalScraper(ctx: ShowContext | MovieContext): Promise<Source
|
|||
const lookmovieData = await searchAndFindMedia(ctx.media);
|
||||
if (!lookmovieData) throw new NotFoundError('Media not found');
|
||||
|
||||
ctx.progress(30);
|
||||
|
||||
const videoUrl = await scrape(ctx.media, lookmovieData);
|
||||
if (!videoUrl) throw new NotFoundError('No video found');
|
||||
|
||||
ctx.progress(60);
|
||||
|
||||
return {
|
||||
embeds: [],
|
||||
stream: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue