Skip to content

Conversation

Hk-Gosuto
Copy link
Contributor

Added support for downloading videos from Sora (sora.com)

test:
https://sora.chatgpt.com/p/s_68deacf22a84819192c0c8f05a30ae01


// If not found, search through script tags more thoroughly
if (!videoUrl) {
const scriptMatches = html.match(/<script[^>]*>(.*?)<\/script>/gs);

Check failure

Code scanning / CodeQL

Bad HTML filtering regexp High

This regular expression does not match upper case <SCRIPT> tags.
candidate = candidate.replace(/\\\//g, "/");

if (
candidate.includes("videos.openai.com") &&

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
videos.openai.com
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant