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)."
- Python 3.6+
- Subsync
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.
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.