Skip to content

Subtitles renamer. Rename your subtitles matching related video files.

License

Notifications You must be signed in to change notification settings

moonrollersoft/subtitles

Repository files navigation

SUBTITLES

What is subtitles for?

Just automates the subtitles renaming job. subtitles will try to rename your subtitles matching video files names.

Requisites

Use

Download/clone the project, move inside:

cd /subtitles

and execute:

python fix_subtitles.py -s -p /path/to/my/series/dir

subtitles will recursively search all the video and subtitles files under the provided path, then it will try to rename the subtitle as the video files if the season/episode matches.

Execution options

subtitles execution options:

  • -p --path Path to the series/movies
  • -s --series Fix series subtitles, matching seasons/episodes
  • -m --movies Fix movies subtitles

Examples

Fixing series subtitles:

python fix_subtitles.py -s -p /path/to/my/series

Fixing a movie subtitle:

python fix_subtitles.py -m -p /path/to/my/movie

Extras

In order avoid the terminal and ease the usage of subtitles in Ubuntu's Nautilus file manager, a Makefile is provided. When executed, you will be able to use subtitles right-clicking on any file, being inside the series/movie directory you want to fix. Tested in Ubuntu 18.04.

Installation

In the project root execute:

make

If the execution was successful, you can got to the series dir you need to fix and right-click on any file and two new options will be displayed inside the "Scripts" option: "fixseries" and "fixmovies".

alt text

alt text

Uninstall

In the project root execute:

make uninstall

Disclaimer

All the original subtitles are stored inside a new "original_subs" directory, so do not worry if something goes wrong or you click on "fixmovies" and you meant "fixseries", you can recover the original ones.

Test

Execute:

pip install -r requirements-test.txt
pytest

License

MIT

Contact

moonrollersoft@gmail.com

About

Subtitles renamer. Rename your subtitles matching related video files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published