Metadata-Version: 2.4
Name: pkg-anime-1
Version: 2.0.0
Summary: anikage.cc anime downloader — HLS with resume, ARM7/Termux-compatible, no Cloudflare challenge
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: rich
Requires-Dist: InquirerPy
Requires-Dist: tqdm
Provides-Extra: encrypted
Requires-Dist: pycryptodome; extra == "encrypted"

# pkg-anime-1  v2.0.0

**anikage.cc** anime downloader — searches any anime (TV series + movies),
downloads with HLS segment resume, and runs on ARM7 Termux with zero extra
setup. No Cloudflare challenge, no browser required.

## Install

```bash
pip install pkg-anime-1
```

Requires **ffmpeg** for the final mux step:

```bash
# Termux
pkg install ffmpeg

# Debian / Ubuntu
sudo apt install ffmpeg
```

## Usage

```bash
anime                                # interactive search + download
anime "demon slayer"                 # search directly
anime "demon slayer" -e 1-5         # episodes 1–5
anime "demon slayer" -e 1,3,7       # specific episodes
anime "demon slayer" --all           # every episode
anime "demon slayer" -r 720          # prefer 720p
anime "demon slayer" -l dub          # prefer dub audio
anime "demon slayer" -d /sdcard/Anime  # download to a specific folder
anime --config                       # show saved settings
```

## Config

Settings are saved in `~/.kage_config.json` and used as defaults each run.

```bash
anime --set-quality 720
anime --set-lang sub
anime --set-threads 4
anime --set-dir /sdcard/Anime
```

## Resume downloads

Each episode's HLS segments are cached in a hidden `.segments_*/` folder
next to the output file. If a download is interrupted (network drop, Termux
killed, power loss), re-running the same command skips the segments that
already finished and continues from where it stopped.

## Platform notes

| Platform | Works? | Notes |
|---|---|---|
| ARM7 Termux (2 GB RAM phones) | ✓ | Pure Python + requests + ffmpeg |
| ARM64 Termux | ✓ | Same |
| Linux / PC | ✓ | Same |
| Windows | ✓ | Same |

No Rust, no Cloudflare bypass libraries, no browser automation needed.
anikage.cc is a clean JSON API.

## Optional extra

```bash
pip install "pkg-anime-1[encrypted]"   # adds pycryptodome for AES-encrypted streams
```

Most anikage.cc streams are plain HLS and don't need this.
