manasomali / automatic-renamer

Program to automatic rename files or folders following determined rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Automatic Renamer

Program to rename files or folder. Can be used to rename series, movies or anime. It performs an automatic processing of the name file and follow some rules create a new personalized name for the file. It shows the new name for the user so it can be edited before the execution of rename.

Python Automatic Renamer

Prerequisites

What things you need to install the software and how to install them

Python 3.x

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Start creating a virtual environment called "venv":

$ python -m venv venv

Then, activate with:

Windows:

$ venv\Scripts\activate

MacOs:

$ source venv/bin/activate

When finised, deactivate with:

$ deactivate

After activate "env" it is necessary install the requirements:

$ pip install -r requirements.txt

Testing

For testing, use the sample video in the forlder "test" and call the main script:

cd test/
python ../automatic-renamer/automatic-renamer.py

Running

Linux, Mac OS X, BSD and most OSes except Windows

Turn script executable:

chmod +x automatic-renamer/automatic-renamer.py

Call script inside a folder:

./automatic-renamer.py .

Windows

  1. To run a test, call the script inside the folder.
python automatic-renamer.py .

For Windows in Context Menu:

To generate automatic-renamer.exe file to run on Windows.

pyinstaller -w -F automatic-renamer/automatic-renamer.py
  1. Add the keys on Registry or run static/automatic-renamer.reg.
  2. Copy .exe file on C:\Program Files\Legendas TV Organizer
  3. Add C:\Program Files\Legendas TV Organizer in the Path on Windows Environment Variable.

Contributing

Feel free to submitting pull requests.

Authors

  • Matheus N. S. M. de Lima - Initial work - Site

License

This project is licensed under the GNU General Public License.

Acknowledgments

Inspired by:

About

Program to automatic rename files or folders following determined rules.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%