Skip to content

Releases: mpiton/vortex-mod-mediafire

v1.0.0 — MediaFire free hoster

Choose a tag to compare

@mpiton mpiton released this 04 May 09:15

First public release of vortex-mod-mediafire, the MediaFire free hoster plugin
for Vortex.

Features

  • Resolves https://(www.|m.)?mediafire.com/file/<key>(/<filename>)?(/file)?
    URLs to direct download<n>.mediafire.com CDN URLs
  • Two parsing strategies: plain href extraction and base64
    data-scrambled-url decoding
  • Security: decoded scrambled URLs must resolve to a
    download<n>.mediafire.com host or they are rejected — defangs
    attacker-controlled scramble payloads
  • Body cap: 2 MiB ceiling on response bodies so a malicious server
    can't make every regex scan a multi-megabyte buffer
  • Filename + size parsed from <span class="dl-btn-label"> and
    Download (X.YZ MB) text; supports B / KB / MB / GB / TB
  • FileLink.resumable = true so the host's segmented engine engages
    multi-connection ranged downloads
  • No wait, no captcha, no subprocess

Plugin contract

Function Input Output
can_handle URL "true" / "false"
supports_playlist URL always "false"
extract_links URL JSON ExtractLinksResponse
resolve_stream_url JSON {url} direct CDN URL string

Capabilities: http = true only. No subprocess, no filesystem access.

Test coverage

  • 58 native tests (4 suites): unit lib (43) + parser fixtures (12) +
    WASM smoke (3) loaded via Extism
  • 10 HTML fixtures covering plain href, B/KB/MB/GB/TB sizes, missing
    size text, missing filename, extra attributes, offline page

Install

Via the Vortex plugin browser (recommended)

The registry entry has been merged in
vortex/registry/registry.toml.
Install through Vortex's plugin manager UI.

Manual install (development)

PLUGIN_DIR="$HOME/.local/share/dev.vortex.app/plugins/vortex-mod-mediafire"
mkdir -p "$PLUGIN_DIR"
curl -L -o "$PLUGIN_DIR/vortex-mod-mediafire.wasm" \
  https://github.com/mpiton/vortex-mod-mediafire/releases/download/v1.0.0/vortex_mod_mediafire.wasm
curl -L -o "$PLUGIN_DIR/plugin.toml" \
  https://github.com/mpiton/vortex-mod-mediafire/releases/download/v1.0.0/plugin.toml

Vortex picks up the new plugin via the file watcher; no restart needed.

Checksums

Asset SHA-256
vortex_mod_mediafire.wasm 5775871ba142ac7ae665e6fb46c71754d4318709f0d95b5af7af9f7bef8ef942
plugin.toml 88f1e8444027b28e3e05e96123295697e8abe204e86f605a2036694a85cd42c0

Requirements

  • Vortex host ≥ 0.1.0 (http_request host function)

Build from source

rustup target add wasm32-wasip1
cargo build --target wasm32-wasip1 --release

License

GPL-3.0 — same as Vortex core.