Metadata-Version: 2.4
Name: manga-termux
Version: 1.0.4
Summary: A user-friendly manga downloader CLI for Termux — downloads from weebcentral.com with chapter range selection, live search, and aria2c 16-thread downloading.
Author: manga-termux
License: MIT
Project-URL: Repository, https://github.com/manga-termux/manga-termux
Keywords: manga,downloader,termux,weebcentral,android,cli,aria2c
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

# manga-termux

A user-friendly manga downloader CLI for **Termux** on Android.  
Downloads from [weebcentral.com](https://weebcentral.com) with live search, chapter range selection, and aria2c 16-thread downloading.

---

## Install

```bash
pkg install aria2
pip install manga-termux
```

---

## Usage

Just type:

```bash
manga
```

1. Type manga name — live suggestions appear as you type  
2. Pick a result from the numbered list  
3. Enter chapter range: `1`, `2-8`, `1-90`, `all`, `1,5,10`  
4. Downloads start with aria2c at full bandwidth  
5. Saved to `/sdcard/Manga/{Title}/Chapter N/`

---

## Chapter range formats

| Input   | Meaning                        |
|---------|-------------------------------|
| `1`     | Single chapter 1               |
| `2-8`   | Chapters 2 through 8           |
| `1-90`  | Chapters 1 through 90 (batch)  |
| `all`   | Every chapter                  |
| `1,5,10`| Specific chapters              |
| `1-10,20,30-35` | Mixed ranges          |

---

## Features

- **Live search** — suggestions appear as you type (powered by prompt_toolkit)
- **16-connection aria2c downloads** — full bandwidth per chapter
- **Chapter range selection** — single, range, batch, specific chapters
- **Automatic fallback** — threaded downloader if aria2c not installed
- **Saves organized** — `/sdcard/Manga/{Title}/Chapter N/001.jpg`

---

## Requirements

| Tool         | Install command       | Required? |
|--------------|-----------------------|-----------|
| aria2        | `pkg install aria2`   | Recommended |
| prompt_toolkit | auto-installed      | Yes (included) |

---

## Environment Variables

| Variable             | Default          | Description               |
|----------------------|------------------|---------------------------|
| `MANGA_DOWNLOAD_DIR` | `/sdcard/Manga`  | Override default save path |

---

## License

MIT
