Metadata-Version: 2.4
Name: animepahe-dl-tmux
Version: 1.3.7
Summary: AnimePahe downloader for Termux — CLI-only, Python HLS segment downloader
Author: animepahe-dl-tmux contributors
License: MIT
Project-URL: Homepage, https://github.com/animepahe-dl-tmux/animepahe-dl-tmux
Project-URL: Repository, https://github.com/animepahe-dl-tmux/animepahe-dl-tmux
Keywords: animepahe,anime,downloader,termux,hls,cli
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.28.0
Requires-Dist: beautifulsoup4>=4.11.0
Requires-Dist: loguru>=0.6.0
Requires-Dist: tqdm>=4.64.0
Requires-Dist: pycryptodome>=3.15.0
Requires-Dist: urllib3>=1.26.0
Requires-Dist: rich>=12.0.0
Requires-Dist: questionary>=2.0.0
Requires-Dist: pyfzf>=0.3.1
Requires-Dist: plyer>=2.1.0
Requires-Dist: curl_cffi>=0.6.0

# animepahe-dl-tmux

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

## Install

```bash
pip install animepahe-dl-tmux
```

## Requirements

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

## Usage

```bash
# Interactive mode
dl

# 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
```

## What's new in 1.3.6

- **Fixed DDoS-Guard bypass**: now fetches the site homepage first to receive the `__ddg1_` cookie that the server sets on initial contact, before running the challenge verification. Previously the bypass could report success without actually obtaining valid session cookies.
- **Fixed 403 retry loop**: after a bypass attempt, if subsequent requests still return 403, the bypass is now re-attempted (up to 2 times) rather than silently giving up.
- **Auto domain detection**: on startup, the tool now probes all known AnimePahe mirrors (`animepahe.ru`, `animepahe.com`, `animepahe.pw`, `animepahe.org`) and automatically switches to whichever one responds. The chosen domain is saved to config so future runs skip the probe. This fixes the issue where a stale `base_url` in config (e.g. `.pw`) was causing persistent 403 errors.
