mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-28 04:46:07 -08:00
feat(subsync): keep a one-time backup when replacing subtitles in place
Auto mode rewrites the active subtitle from one keypress with replace on by default. The first in-place rewrite now copies the original to <file>.orig (not a subtitle extension, so mpv autoload and sidecar discovery skip it). Replacements also write through symlinks and keep the file's permissions.
This commit is contained in:
5 files changed
+128
-28
No files matched your search
@@ -525,13 +525,13 @@ Built-in alass-based subtitle alignment works out of the box with no extra sync
|
||||
|
||||
Optional external [`alass`](https://github.com/kaegi/alass) and [`ffsubsync`](https://github.com/smacke/ffsubsync) binaries are also supported in the guided modal when installed.
|
||||
|
||||
| Key | Default | What it does |
|
||||
| ------------------------ | -------- | --------------------------------------------------------------------------------------------------------- |
|
||||
| `subsync.mode` | `"auto"` | `"auto"` syncs immediately and opens the guided modal only when needed; `"manual"` always opens the modal |
|
||||
| `subsync.alass_path` | `""` | Optional external `alass` path. Empty auto-discovers from `PATH` |
|
||||
| `subsync.ffsubsync_path` | `""` | Optional external `ffsubsync` path. Empty auto-discovers from `PATH` |
|
||||
| `subsync.ffmpeg_path` | `""` | `ffmpeg` path used to extract embedded tracks and audio speech. Empty auto-discovers from `PATH` |
|
||||
| `subsync.replace` | `true` | Overwrite the subtitle file. When off, write `<name>_retimed.<ext>` |
|
||||
| Key | Default | What it does |
|
||||
| ------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `subsync.mode` | `"auto"` | `"auto"` syncs immediately and opens the guided modal only when needed; `"manual"` always opens the modal |
|
||||
| `subsync.alass_path` | `""` | Optional external `alass` path. Empty auto-discovers from `PATH` |
|
||||
| `subsync.ffsubsync_path` | `""` | Optional external `ffsubsync` path. Empty auto-discovers from `PATH` |
|
||||
| `subsync.ffmpeg_path` | `""` | `ffmpeg` path used to extract embedded tracks and audio speech. Empty auto-discovers from `PATH` |
|
||||
| `subsync.replace` | `true` | Overwrite the subtitle file, keeping the original as `<file>.orig` on the first overwrite. When off, write `<name>_retimed.<ext>` |
|
||||
|
||||
### AniList
|
||||
|
||||
|
||||
@@ -151,6 +151,8 @@ SubMiner includes a built-in alass-based aligner and speech-activity fallback (u
|
||||
- SubMiner pauses for guidance when confidence is low (for example, a mismatched episode), when a reference subtitle track is itself misaligned with the audio and audio-only alignment is uncertain, or when a remote stream has no usable reference track.
|
||||
- In the guided modal you can switch to another embedded/sidecar track, browse for a local reference subtitle file, switch to built-in video audio speech detection, toggle **Ignore signs & songs** or **Allow scene cuts & ad-break splits**, try external `alass`/`ffsubsync`, or apply a **Manual offset**.
|
||||
|
||||
**A sync made the timing worse**: the first in-place sync keeps the original as `<file>.orig` next to the subtitle. Rename it back over the subtitle to restore it.
|
||||
|
||||
**"Configured alass executable not found"** / **"Configured ffsubsync executable not found"**: only applies when selecting the optional external engines. Install them (`paru -S alass`, `cargo install alass-cli`, or `pip install ffsubsync`), set `subsync.alass_path` / `subsync.ffsubsync_path`, or use the **Built-in (alass)** engine.
|
||||
|
||||
**"alass synchronization failed" / "ffsubsync synchronization failed"**:
|
||||
|
||||
Reference in new issue
Block a user