Skip to main content

AnimePahe downloader for Termux — CLI-only, Python HLS segment downloader

Project description

animepahe-dl-tmux

A CLI-only AnimePahe downloader for Termux (and Linux) — no GUI, no PyQt6, pure Python HLS segment downloader.

Install

pip install animepahe-dl-tmux

Requirements

pkg install ffmpeg nodejs fzf   # Termux
# or
sudo apt install ffmpeg nodejs fzf   # Linux

Usage

# Search and download
dl -n "Demon Slayer"

# Download specific episodes
dl -n "Spy x Family" -e 1-12

# Best quality, English audio
dl -n "Bleach" -q best -a eng

# Stream directly (requires mpv)
dl -n "One Piece" --play

# Update anime list cache
dl --update-cache

Options

Flag Description
-n NAME Anime name to search
-e EPISODES Episodes to download (e.g. 1,3,5-10)
-q QUALITY Quality: best, 1080, 720, 480, 360
-a AUDIO Audio: jpn (default) or eng
-t THREADS Download threads per episode (default: 50)
-c N Concurrent episode downloads (default: 2)
--play Stream directly without downloading
--update-cache Refresh the local anime list cache
--updates Check for new episodes of your list
--set KEY=VALUE Save a config value

Changelog

1.3.0

  • Auto-resume interrupted downloads — if Termux is closed or the connection drops mid-download, the next run automatically detects the saved playlist + partial segments and resumes from where it left off. No re-searching, no re-selecting.
  • Fixed episode range selection — range/comma selections (e.g. 5-10) now filter against the actual set of available episode numbers, not just a max count. Fixes cases where certain episodes were silently skipped.
  • Shows available episodes — before asking which episodes to download, now displays the full list as compact ranges (e.g. 1-12, 14, 16-24) plus separate "already downloaded" and "not yet downloaded" lines.
  • Added 'all' as a valid episode selection shorthand.

1.2.0

  • Fixed 403 errors from kwik.cx — corrected the Referer header sent to kwik.cx embed pages. Previously the package used kwik.cx as its own referer, which kwik.cx rejects. Now correctly sends the animepahe domain as the referer.
  • Updated User-Agent to Chrome 124
  • Added KWIK_REFERER constant for cleaner header management
  • set_base_url() now also updates KWIK_REFERER
  • Added 24 unit tests covering the referer fix, retry logic, quality selection, and playlist parsing

1.1.0

  • Initial public release

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

animepahe_dl_tmux-1.3.3.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

animepahe_dl_tmux-1.3.3-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file animepahe_dl_tmux-1.3.3.tar.gz.

File metadata

  • Download URL: animepahe_dl_tmux-1.3.3.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for animepahe_dl_tmux-1.3.3.tar.gz
Algorithm Hash digest
SHA256 43ff7f2eba5941763a0c8769e213cc8c64dda868a27c4f42187ce6aae9b7f063
MD5 9c1fee2c94adf083771b294b0038f9c7
BLAKE2b-256 fd5c16e5b7b5bab54dd3a1cfae6c8806ff2f06b15dd78c69d51bf5e96ca3733d

See more details on using hashes here.

File details

Details for the file animepahe_dl_tmux-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for animepahe_dl_tmux-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4336742be761a9295495ec4d43aa3ffd7f217bf3edf9e9c671155f2f70f258f8
MD5 81172a9979f73e5426647f6c5963ed6f
BLAKE2b-256 26942bf56b7747a568a66c4df93e276ca4bfd015b1a59de64e232ef0ba24efe5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page