Giter VIP home page Giter VIP logo

recursync's Introduction

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.

recursync's People

Contributors

jeffarese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

recursync's Issues

Seems not works with .ass

I've tried with .ass files, and just show me a message "Starting sync process in path:..." and nothing happened.
With srt files worked well

Add option to use flags from ffsubsync

Some errors happen that could be avoided if it were possible to use some ffsubsync flags, for example, --max-offset-seconds.
Or there is a way to use some flags with r-subsync?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.