Metadata-Version: 2.4
Name: java-extention
Version: 1.3.1
Summary: MissAV HLS downloader with custom clip support — no browser, Termux/armv7l safe
License: MIT
Keywords: missav,hls,downloader,termux,clip
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: rich>=13.0
Requires-Dist: urllib3>=1.26
Requires-Dist: curl-cffi>=0.6; platform_machine != "armv7l" and platform_machine != "aarch64" and platform_system != "Android"

# java-extention

MissAV HLS downloader with **custom clip support** — no browser, no Cloudflare, Termux/armv7l safe.

## Install

```bash
pip install java-extention
```

## Usage

```bash
java "STARS-100"              # search + download full video
java "STARS-100" -r 720       # prefer 720p
java --recent                 # browse recent uploads

# Custom clip — download only the minutes you want:
java "STARS-100" --start 0 --end 30min
java "STARS-100" --start 1h --end 1h30m
java "STARS-100" --start 00:10:00 --end 00:40:00
```

Or interactive — after picking a video it asks:

```
  Download mode:
  1. Full video
  2. Custom clip

  Start time: 0
  End time:   30min
```

## Time formats

| Input     | Means         |
|-----------|---------------|
| `30`      | 30 seconds    |
| `30min`   | 30 minutes    |
| `1h`      | 1 hour        |
| `1h30m`   | 1h 30 minutes |
| `00:30:00`| 30 minutes    |

## Features

- Threaded HLS segment download (8 workers default)
- **Custom duration clips** — downloads only needed segments, no ffmpeg required
- Chrome TLS fingerprint via `curl_cffi` (bypasses Cloudflare)
- Search cache (30 min TTL)
- Termux / armv7l compatible
- Pure Python, no browser

## Options

```
java --help

positional:
  query              JAV code or search term (e.g. STARS-100)

options:
  -r RESOLUTION      Preferred resolution: 1080, 720, 480, 360
  -t THREADS         Download threads (default 8)
  -o OUTPUT          Output directory
  --start TIME       Clip start time
  --end   TIME       Clip end time
  --recent           Browse recent uploads
  --clear-cache      Wipe search cache
```
