Merge pull request #108 from movie-web/fix/#997

Check if dood returns a valid url
This commit is contained in:
William Oldham
2024-03-11 14:38:57 +00:00
committed by GitHub

View File

@@ -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: [
{