-
-
Couldn't load subscription status.
- Fork 3.1k
feat: add support for Sora service #1454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Why the need? Doesn't the Sora website just let you download from it already? |
Because Sora only allows downloads through a regular web browser. When accessed via a mobile app, the download button doesn’t work, so this PR enables video downloads in that scenario as well. It can also be used together with iOS Shortcuts for quick video downloads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need to search through all the script tags. The video source is exposed in meta[property="og:video"].
- Use sora.chatgpt.com domain for all requests - Prioritize og:video meta tag extraction over script parsing - Simplify fallback regex patterns and remove complex script searching - Fix case-insensitive matching for HTML title tags - Reduce code complexity from ~50 to ~25 lines in extraction logic
- Add conditional check before HTML entity decoding to avoid unnecessary processing - Reorder entity replacement to process & last, preventing double-decoding - Add support for &imputnet#39; entity (alternative single quote encoding) - Prevent duplicate decoding by only applying fallback decoding when og:video wasn't used - Addresses CodeQL 'Double escaping or unescaping' high severity finding
Thanks for pointing that out! I've updated the implementation to use the |
Added support for downloading videos from Sora (sora.com)
test:
https://sora.chatgpt.com/p/s_68deacf22a84819192c0c8f05a30ae01