Skip to content

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.

License

Notifications You must be signed in to change notification settings

jeffarese/recursync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages