rapidjson | ||
unix | ||
windows | ||
.clang-format | ||
.gitignore | ||
databasewindow.cpp | ||
databasewindow.hpp | ||
filesystem.hpp | ||
functions.cpp | ||
functions.hpp | ||
gtkfunctions.cpp | ||
gtkfunctions.hpp | ||
gui.cpp | ||
LICENSE | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.hpp | ||
Makefile | ||
network.hpp | ||
progress.cpp | ||
progress.hpp | ||
progresswindow.cpp | ||
progresswindow.hpp | ||
README.md | ||
resource.h | ||
seasonwindow.cpp | ||
seasonwindow.hpp | ||
small.ico | ||
sqlite3.c | ||
sqlite3.h | ||
sqlitepp.hpp | ||
tv_rename_gui.cpp | ||
tv_rename_gui.desktop | ||
tv_rename_gui.ico | ||
tv_rename_gui.rc | ||
tv_rename.cpp | ||
tv_rename.hpp | ||
tv_rename.svg |
Rename TV Show files
This program downloads episode names from http://thetvdb.com and adds them as a suffix to the appropriate files
For this to work your file needs to contain the season and episode number (in accordance to thetvdb) in this format: S#E# (doesn't matter if lower or upper case)
The program only supports the aired order so far
Usage
Enter the directory in which the files you want to rename are (you can have subdirectories with different seasons, just not different shows) and call the program
Arguments:
-s, --show
- Name of the show
-n, --season
- Seasons to be renamed (numbers separated by space or 'all' for all seasons in the directory and sub directories)
-p, --show-path
- Path to the show's directory
-c, --correct-path
- Don't ask if path is correct
-t, --trust
- Don't prompt before changing file names
-x, --linux
- Don't replace characters that are illegal in NTFS
-l, --lang
- Language of the episode titles
--print_langs
- Print available languages
--name-pattern
- Pattern by which the files should be renamed
- %filename - original filename
- %show - show name from thetvdb
- %epname - episode name from thetvdb
- %season - season number, possible to specify leading 0 like this: %2season (number means how many leading zeros)
- %episode - episode number, possible to specify leading 0 like this: %3season (number means how many leading zeros)
Installation
For installation of command line version you'll need:
- libcurl-dev (or your distro's equivalent)
- some sort of C++ compiler (clang++ for example)
- make
When you have all prerequisites installed you need to do this sequence of commands:
git clone 'https://gitlab.com/zvon/tv_rename_cpp'
cd tv_rename_cpp
make
sudo make install
For installation of GUI version you'll need:
- libcurl-dev (or your distro's equivalent)
- some sort of C++ compiler (clang++ for example)
- make
- libgtkmm (or your distro's equivalent)
When you have all prerequisites installed you need to do this sequence of commands:
git clone 'https://gitlab.com/zvon/tv_rename_cpp'
cd tv_rename_cpp
make gui
sudo make install_gui
You can uninstall both versions by running either sudo make uninstall
or sudo make uninstall_gui
3rd party libraries
This project uses rapidjson library which can be found here - https://github.com/Tencent/rapidjson