Recursync
Script to recursively sync all the subtitles of a folder and overwrite the old one (after backing it up). It won't try to sync previously synced subs on next iterations.
Install / Use
/learn @jeffarese/RecursyncREADME
r-subsync
Script to recursively sync (using Subsync) all the subtitles of a folder and overwrite the old one (after backing it up). It won't try to sync previously synced subs on next iterations.
Subsync is an awesome library, I highly recommend you to check out its repository:
History about it:
"The implementation for this project was started during HackIllinois 2019, for which it received an Honorable Mention (ranked in the top 5 projects, excluding projects that won company-specific prizes)."
Requirements
- Python 3.6+
- Subsync
Usage
python rSubsync.py --lang xx --path /path
Only the lang is required. It needs to match the lang specified on your subtitle files, so:
If your subtitles are named like:
subtitle.en.srt
the lang needs to be
en.
Example usage
Having:
.
└── path-to-sync-recursively
├── video1
│ ├── video1.en.srt
│ └── video1.mkv
└── video2
├── video2.en.srt
└── video2.mkv
Using the command:
python3 rSubsync.py --lang en --path /path-to-sync-recursively/
Will do this:
.
└── path-to-sync-recursively
├── video1
│ ├── video1.en.srt
│ ├── video1.en.srt.old
│ └── video1.mkv
└── video2
├── video2.en.srt
├── video2.en.srt.old
└── video2.mkv
In case there are errors in the process of syncing any subtitle, it will create a .failed file with the stacktrace.
If you don't specify any path it will use the current one ('.') to start syncing.
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
