Skip to content

Python script to replace a set of words, provided through a JSON, in a subtitle file inside an MKV.

Notifications You must be signed in to change notification settings

EfronC/Delocalizer

Repository files navigation

Delocalizer

Delocalizer script to replace a set of words in a subtitle track on an MKV file for one specified on a JSON file.

Installation

For Python:

  • Just create a Virtual Environment and run pip install -r requirements

For C modules(Optional):

  • In progress...

Instructions

  • Make sure to create a .env file with the variable CYENV, which will tell the program if to use pure Python or Cython(If configured).
  • Set the files you want to delocalize in the root folder.
  • Create the JSON file, with this format
{
    "<word to search>":"new word",
    "<word to search>":"new word",
    ...
}

Recommendation, if a word is contained in another("Hello" and "Hello World"), set the lengthier first.

  • Once you have created those files, just execute the program with python main.py --j <name json file>.json

About

Python script to replace a set of words, provided through a JSON, in a subtitle file inside an MKV.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages