Metadata-Version: 2.4
Name: awi-tmux
Version: 1.2.0
Summary: Anime World India downloader — CLI for watchanimeworld.net (Hindi/Tamil/Telugu/English dubs)
Author: awi-tmux contributors
License: MIT
Project-URL: Homepage, https://github.com/awi-tmux/awi-tmux
Keywords: anime,watchanimeworld,downloader,hls,cli,termux,dubbed
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: curl-cffi>=0.7.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: rich>=12.0.0
Requires-Dist: questionary>=2.0.0
Requires-Dist: pyfzf>=0.3.1
Requires-Dist: plyer>=2.1.0

# awi-tmux

CLI downloader for [watchanimeworld.net](https://watchanimeworld.net) — Hindi, Tamil, Telugu, Malayalam, Kannada, and English dubbed anime. Works on Termux, Linux, macOS, and Windows.

## Install

```bash
pip install awi-tmux
```

**Dependencies (install once):**
```bash
# Termux
pkg install ffmpeg fzf nodejs

# Linux / macOS
sudo apt install ffmpeg fzf nodejs   # or brew install ...
```

## Usage

```bash
# Search and download interactively
awi "naruto"

# Auto-select Hindi dub
awi "naruto" --language Hindi

# Batch download episodes 1–10 in Tamil
awi "naruto" --language Tamil --episodes 1-10

# Download whole series
awi "dragon ball z" --episodes all

# Stream in mpv
awi "boruto" --play

# Pick a specific quality
awi "one piece" -q 720p

# Browse latest series
awi --browse series

# Direct URL
awi --url https://watchanimeworld.net/series/naruto/

# Concurrent episode downloads (2 at once)
awi "naruto" --episodes 1-5 --concurrent 2
```

## Cloudflare bypass

The site uses Cloudflare. On residential IPs (Termux / home internet), bypass works automatically. If you get blocked:

1. Open `https://watchanimeworld.net` in your browser and pass the challenge
2. Open DevTools (F12) → Application → Cookies → `watchanimeworld.net`
3. Copy the `cf_clearance` value
4. Run:
```bash
awi --set-cookie "cf_clearance=your_value_here"
```

The cookie is saved and reused automatically.

## Configuration

```bash
awi --config                                   # show current config
awi --set language=Hindi                       # set default language
awi --set quality=720p                         # set default quality
awi --set download_directory=/sdcard/Anime     # set download folder
awi --set workers=12                           # segment download threads
awi --set concurrent_downloads=2               # simultaneous episodes
```

## Features

- Search and download by title
- Hindi/Tamil/Telugu/Malayalam/Kannada/English dub selection
- Quality selection (1080p, 720p, 480p, 360p, best)
- Batch downloads with episode ranges
- Direct streaming via mpv/vlc/ffplay
- Resume interrupted downloads automatically
- Desktop notifications on completion
- Cloudflare bypass via Chrome TLS impersonation + cookie persistence
