Metadata-Version: 2.4
Name: anime-termux
Version: 1.0.5
Summary: A user-friendly anime downloader CLI for Termux — streams from animepahe.pw with real-time search, CF cookie bypass, quality selection, and aria2c segmented downloading.
Author: anime-termux
License: MIT
Project-URL: Repository, https://github.com/anime-termux/anime-termux
Keywords: anime,downloader,termux,animepahe,android,cli,aria2c,yt-dlp
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Environment :: Console
Classifier: Topic :: Multimedia
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: prompt_toolkit>=3.0.0
Requires-Dist: yt-dlp>=2024.1.0

# anime-termux

A user-friendly anime downloader CLI for Termux (Android), streaming from [animepahe.pw](https://animepahe.pw).

## Install

```bash
pip install anime-termux
```

**Requirements** (auto-installed via pip):
- `curl_cffi` — Cloudflare bypass (Chrome TLS impersonation)
- `yt-dlp` — episode extraction and downloading
- `prompt_toolkit` — live search UI

**Recommended** (install in Termux for fastest downloads):
```bash
pkg install aria2   # 16-thread segmented downloading
pkg install ffmpeg  # video merging (usually pre-installed with yt-dlp)
```

## Usage

```bash
# Interactive mode
anime

# Custom download directory
anime --dir=/sdcard/MyAnime
anime --dir=/storage/external/Anime
```

## Features

- **Real-time search** — suggestions as you type, Tab to autocomplete
- **Cloudflare bypass** — `curl_cffi` impersonates Chrome 120 so CF challenges pass
- **Quality picker** — choose 360p / 480p / 720p / 1080p / best
- **Segmented download** — aria2c with 16 connections (falls back to yt-dlp's 8-fragment mode)
- **Episode range** — download single episodes, ranges, or mixed selections
- **Skip existing** — already-downloaded episodes are skipped automatically
- **Custom directory** — `anime --dir=/path/to/folder`

## How it works

1. Searches AnimePahe API via `curl_cffi` (bypasses Cloudflare)
2. Shows paginated episode list
3. You pick episode range + quality
4. yt-dlp downloads via kwik.cx extraction with segmented aria2c

## Output

Files are saved as:
```
/sdcard/Anime/{Anime Title}/{Anime Title} - Ep001.mp4
```
