Skip to content

Yorumi CLI v2.0.0

Latest

Choose a tag to compare

@davenarchives davenarchives released this 15 Jun 07:49

A major release featuring native AllAnime GraphQL API scraping, on-the-fly HLS stream decryption, instant mpv media player startup, and a complete architectural code modularization refactor.

What's Changed

Added

  • Direct AllAnime (AllManga) API Scraper Integration: Queries the AllAnime backend via optimized GraphQL requests directly, bypassing browser-emulation scraper delays and Cloudflare blocks.
  • Silent On-the-Fly Decryption: Integrated native decryption using aes-256-ctr to decode AllAnime's encrypted "tobeparsed" stream blocks into direct, playable .m3u8 files.
  • GraphQL-based Search Fallback: Automatically falls back to AllAnime GraphQL search if the primary GogoAnime search gets blocked by Cloudflare (yielding 0 results).
  • Robust Direct Stream Headers: Added automatic --referrer injection and custom HTTP header configurations for Direct streams in mpv.

Changed

  • Architectural Refactor & Code Modularization: Deconstructed the monolithic src/index.ts structure into clean, decoupled, single-responsibility modules:
    • src/allanime.ts: AllAnime GraphQL integration and decryption logic.
    • src/gogoanime.ts: GogoAnime HTML scraper.
    • src/player.ts: Video playback controller (mpv integration).
    • src/downloader.ts: M3U8 downloading and ffmpeg transcoding logic.
    • src/scraper.ts: Scraper orchestrator and search logic.
    • src/system.ts: Environment, shell execution, path setup, and self-updater logic.
    • src/cliUtils.ts, src/constants.ts, src/types.ts, src/utils.ts: Helper utilities and shared typings.

Fixed

  • Instant Media Player Playback (mpv Exit Code 2): Automatically appends --no-ytdl to direct AllAnime HLS .m3u8 streams, disabling slow and error-prone youtube-dl / yt-dlp checks, resolving instant load-up.
  • Strict Episode List Mapping (Naruto 1000+ Eps Bug): Restricts scraper regex matching to the target slug page content, preventing unrelated sidebar episodes from inflating the total episode count.