feat: improve subtitle extraction, quality fallback, and documentation

This commit is contained in:
Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ
2026-06-25 01:43:11 +05:30
parent 3ab0bae18d
commit 9b1ac11ff0
7 changed files with 124 additions and 20 deletions
+27 -1
View File
@@ -1,6 +1,6 @@
# API Endpoints Reference
Complete documentation for all 35 MiruroAPI v2.0.0 endpoints.
Complete documentation for all 35 MiruroAPI v2.0.1 endpoints.
---
@@ -498,6 +498,32 @@ Streaming sources via URL path (recommended).
| category | string | sub or dub |
| slug | string | Episode slug |
### Response Fields
| Field | Type | Description |
|-------|------|-------------|
| streams | array | Array of stream objects (hls/embed) |
| download | string | Direct download URL (if available) |
| subtitles | array | Subtitle objects (if available) |
| bestStream | object | Best available HLS stream with quality fallback |
### Subtitle Object
| Field | Type | Description |
|-------|------|-------------|
| url | string | VTT subtitle file URL |
| label | string | Display name (e.g., "English") |
| language | string | Language code (e.g., "en") |
| kind | string | "subtitles" or "captions" |
| format | string | "vtt" format |
| encoding | string | "utf-8" |
| isDefault | boolean | Is default subtitle |
### Note
- Bonk provider returns subtitles (English, VTT format)
- Other providers may not return subtitles
- Quality fallback: 1080p → 720p → 480p → 360p
---
## Compare