Skip to content

Yet another m3u8 downloader built with vue3/vite, element-plus & electron.

License

Notifications You must be signed in to change notification settings

gonwan/m3u8-downloader

Repository files navigation

M3U8 Downloader

Yet another m3u8 downloader built with vue3/vite, element-plus & electron.

md-1 md-2

Features

  • Video/Audio stream selection
  • Concurrent download support
  • HTTP headers customization support
  • HTTP proxy support
  • HLS X-MAP support
  • HLS AES-128 encryption support
  • Automatic Ads removing

Dependencies

  • Vite 5+: Node 18+ is required, and CJS Node API is deprecated.
  • Electron 28+: It enables ESM support.

Notes

  • NODE_ENV is a node environment variable, see here.
  • Vite has a similar but different mode concept, see here.
  • In development environment:
    • ESM are requested and loaded directly in browsers, see here.
    • Vite dev server transform *.vue/*.css and other files to ESM(in memory) to be hosted, see here.
    • Vite server and client communicate via websocket, a websocket connection can be found in devtools.
  • In development environment, esbuild is used for:
    • pre-bundle dependencies to convert them to ESM.
    • transpile typescript to javascript, so that HMR can reflect in the browser.
  • In production environment, rollup is used for bundling for its flexibility. see here.
  • When using Github Actions, electron-builder auto detects CI environment via GITHUB_ACTIONS environment variable (via is-ci package).