Metadata-Version: 2.4
Name: animepahe-dl-tmux
Version: 1.3.11
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: 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

# 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/Debian
brew install ffmpeg node fzf        # macOS
```

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

# Download multiple concurrent episodes
dl -n "One Piece" -e 1-10 -c 2

# Stream directly (requires mpv or vlc)
dl -n "Jujutsu Kaisen" --play

# Check for new episodes of your saved anime list
dl --updates
```

## Options

| Flag | Description |
|------|-------------|
| `-n, --name` | Anime name to search |
| `-e, --episodes` | Episodes to download (e.g. `1,3,5-10` or `all`) |
| `-q, --quality` | Video quality: `best`, `1080`, `720`, `480`, `360` |
| `-a, --audio` | Audio language: `jpn` (default) or `eng` |
| `-t, --threads` | Download threads per episode (default: 50) |
| `-c, --concurrent-downloads` | Episodes to download at once (default: 2) |
| `--play` | Stream episode directly with mpv/vlc |
| `--updates` | Check for new episodes |
| `--manage` | Manage your personal anime watchlist |
| `--m3u8-only` | Save `.m3u8` playlist file only, skip download |

## Configuration

Config is stored at `~/.config/animepahe-dl-tmux/config.json`:

```json
{
    "base_url": "https://animepahe.ru",
    "quality": "best",
    "audio": "jpn",
    "threads": 50,
    "concurrent_downloads": 2,
    "download_directory": "~/Anime",
    "update_interval_hours": 5
}
```

## Changelog

### 1.3.9
- **Fix:** Resolved `Cannot set verify_mode to CERT_NONE when check_hostname is enabled` SSL error on Python 3.10+. The fix introduces a custom `HTTPAdapter` (`_NoVerifySSLAdapter`) that correctly disables `check_hostname` before setting `verify_mode = CERT_NONE`. Applied to both the request session factory and domain detection.

### 1.3.8
- Initial public release.

## License

MIT
