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
Refererheader sent to kwik.cx embed pages. Previously the package usedkwik.cxas its own referer, which kwik.cx rejects. Now correctly sends the animepahe domain as the referer. - Updated User-Agent to Chrome 124
- Added
KWIK_REFERERconstant for cleaner header management set_base_url()now also updatesKWIK_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
Release history Release notifications | RSS feed
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.4.tar.gz
(29.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file animepahe_dl_tmux-1.3.4.tar.gz.
File metadata
- Download URL: animepahe_dl_tmux-1.3.4.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
970d0ddec0c42b1da6f1551cb42738d93f12348ca7f908e04dafa56c9200bb94
|
|
| MD5 |
29e7e73a1567306b9c99fd115b0acf50
|
|
| BLAKE2b-256 |
f14d0ed8b4b0f759b396c6e972ebb012579589c5f0374ce843eab2353c78d7a6
|
File details
Details for the file animepahe_dl_tmux-1.3.4-py3-none-any.whl.
File metadata
- Download URL: animepahe_dl_tmux-1.3.4-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad66cb1ff58698386c94e29fef8e8b34688e9fa525e7bbbf76ccd4e987869c2f
|
|
| MD5 |
9b9c8fb5ba6678b1cecc33493d467c71
|
|
| BLAKE2b-256 |
d4eead2b945174a5ced485c6bb1a35de4b29aa0c67491e4012eb1cfa413700be
|