Skip to content

MediaFilez - v2.1.2

Choose a tag to compare

@RlxChap2 RlxChap2 released this 04 Sep 17:50
v2.1.2
1a12385

Highlights

  • Streams Discord attachments from disk, avoiding the large in-memory copies that could stop the 768 MB bot container.
  • Keeps the operator upload target authoritative even when a Nitro user advertises a much larger attachment limit.
  • Adds Auto media detection for video, audio, and images, with guarded fallbacks for direct links, page metadata, and supported extractor sites.
  • Fits oversized video, audio, and images to Discord's upload target instead of leaving requests stuck or rejecting formats that can be converted.
  • Improves Reddit share-link handling, including embed and configurable relay fallback paths.
  • Isolates engine attempts so one timeout or partial result cannot corrupt the next fallback.

Reliability and safety

  • Discord upload retries verify the original response first and stop immediately when the whole-job deadline expires.
  • Connect, write, response, engine, and whole-job timeouts now produce useful terminal errors instead of silent stalls.
  • Image fitting rejects unsafe decoded dimensions and constrains both output axes.
  • Unknown hosts remain inside guarded HTTP engines with redirect, DNS, response-size, and artifact validation.
  • Temporary jobs use process-lifetime ownership and startup cleanup without deleting active work.
  • yt-dlp receives a private writable cookie copy for each attempt.
  • Multipart filenames, response buffering, mention parsing, and final upload size are independently constrained.

Toolchain

  • Requires Node.js 22.13 or newer.
  • Uses pnpm 11.25.0.
  • Updates the media extraction stack and keeps production dependencies free of known high-severity audit findings.
  • Adds full project formatting and expanded regression coverage.

Verification

  • 87 unit and integration tests passed on Node.js 22 and 24.
  • Production dependency audit, dependency review, CodeQL, Compose validation, Dockerfile checks, and production container build passed.
  • The reported YouTube sample fitted to 18.4 MB under a 20 MB target.
  • A 257.4 MB multipart upload completed with bounded memory.
  • The reported Reddit share URL resolved through the Reddit embed path.