mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 11:33:25 +00:00
check if dood returns a valid url
This commit is contained in:
@@ -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: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user