Patch subtitles sync
bazarr_patch_subtitles_syncSyncs an external subtitle file with its video by adjusting timing, with optional framerate fix and quality or offset limits. Use it to correct out-of-sync subtitles for episodes or movies.
Instructions
Sync external subtitles with the video
PATCH /api/subtitles
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"language": "<language>",
"type": "<type>",
"id": "<id>"
},
"name": "bazarr_patch_subtitles_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hi | No | HI subtitles from ["True", "False"] | |
| id | Yes | Media ID (episodeId, radarrId) | |
| gss | No | Use Golden-Section Search from ["True", "False"] | |
| path | No | Subtitles file path | |
| type | Yes | Media type from ["episode", "movie"] | |
| forced | No | Forced subtitles from ["True", "False"] | |
| language | Yes | Language code2 | |
| reference | No | Reference to use for sync from video file track number (a:0) or some subtitles file path | |
| subtitles_id | No | Subtitles database ID (required for the "extract" action) | |
| original_format | No | Use original subtitles format from ["True", "False"] | |
| no_fix_framerate | No | Don't try to fix framerate from ["True", "False"] | |
| quality_min_score | No | Minimum quality score for sync (0.0-1.0) | |
| max_offset_seconds | No | Maximum offset seconds to allow | |
| quality_max_offset_seconds | No | Maximum offset in seconds for quality checks | |
| quality_max_framerate_deviation | No | Maximum framerate deviation (0.0-1.0) |