-
Notifications
You must be signed in to change notification settings - Fork 0
feat(api): refuse downloads until host-side decryption exists #3
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,8 @@ | |
| //! Implements the plugin contract used by the Vortex plugin host: | ||
| //! - `can_handle(url)` → `"true"` / `"false"` | ||
| //! - `supports_playlist(url)` → `"true"` for folder URLs, `"false"` otherwise | ||
| //! - `extract_links(url)` → JSON metadata for a single MEGA file | ||
| //! - `resolve_stream_url(input)` → encrypted CDN URL (host fetches + decrypts) | ||
| //! - `extract_links(url)` / `resolve_stream_url(input)` → refused with an | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: According to linked Linear issue MAT-136 (R-04), unavailable MEGA downloads must be presented honestly; this new contract is not propagated to the README or WASM smoke test, leaving users with the old capability description and CI with assertions for the superseded behavior. Updating the contract documentation and test expectations alongside this change would keep the release surface consistent. Prompt for AI agents
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Valid — CI was red on exactly this: |
||
| //! explicit error until the host can decrypt MEGA payloads (MAT-136 R-04) | ||
| //! | ||
| //! Network access is delegated to the host via `http_request`. All parsing | ||
| //! and crypto is pure (`url_matcher.rs`, `key_parser.rs`, `crypto.rs`, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.