mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-17 23:11:28 +00:00
Merge pull request #108 from movie-web/fix/#997
Check if dood returns a valid url
This commit is contained in:
commit
c348686dc2
1 changed files with 2 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ export const doodScraper = makeEmbed({
|
|||
});
|
||||
const downloadURL = `${doodPage}${nanoid()}?token=${dataForLater}&expiry=${Date.now()}`;
|
||||
|
||||
if (!downloadURL.startsWith('http')) throw new Error('Invalid URL');
|
||||
|
||||
return {
|
||||
stream: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue