Go to file
2020-04-01 13:50:05 +02:00
rapidjson Use rapidjson 2020-01-31 22:38:11 +01:00
unix Filesystem: added some checks 2020-01-18 21:31:09 +01:00
windows windows/databasewindow: localization, remove "hidden" columns 2020-04-01 13:50:05 +02:00
.clang-format Formatting 2019-06-01 21:54:45 +02:00
.gitignore Ignore dotfiles 2019-07-02 16:27:48 +02:00
cs.po Linux localization: added strings 2020-04-01 13:40:26 +02:00
databasewindow.cpp Internationalization: first steps 2020-03-12 20:52:23 +01:00
databasewindow.hpp DatabaseWindow: UI changes 2020-02-12 11:44:34 +01:00
en_US.po Linux localization: added strings 2020-04-01 13:40:26 +02:00
filesystem.hpp Filesystem: removed useless include 2020-01-18 21:20:40 +01:00
functions.cpp Functions: added vargs to LMsg 2020-04-01 13:42:00 +02:00
functions.hpp Functions: added vargs to LMsg 2020-04-01 13:42:00 +02:00
gtkfunctions.cpp Internationalization: first steps 2020-03-12 20:52:23 +01:00
gtkfunctions.hpp Move some shared functions into gtkfunctions.cpp 2020-02-12 11:48:03 +01:00
gui.cpp Internationalization: first steps 2020-03-12 20:52:23 +01:00
LICENSE Guess I should set a license 2018-10-08 20:51:52 +00:00
main.cpp Reorder includes 2020-04-01 13:46:28 +02:00
mainwindow.cpp Internationalization: first steps 2020-03-12 20:52:23 +01:00
mainwindow.hpp MainWindow: support UI changes of DatabaseWindow, use new functions 2020-02-12 11:45:47 +01:00
Makefile Windows: refactored GUI 2020-02-25 16:11:25 +01:00
network.hpp Network: windows needs WinInet.h to be included AFTER Windows.h 2020-02-25 10:09:22 +01:00
progress.cpp Reorder includes 2020-04-01 13:46:28 +02:00
progress.hpp Progress: define message numbers, fix message sending 2020-02-25 10:10:40 +01:00
progresswindow.cpp Internationalization: first steps 2020-03-12 20:52:23 +01:00
progresswindow.hpp Fixed terminal output when running GUI 2020-01-19 12:03:38 +01:00
README.md Use rapidjson 2020-01-31 22:38:11 +01:00
resources_linux.h Resources_Linux: rename FILE to ID_FILE 2020-04-01 13:44:08 +02:00
searchwindow.cpp Internationalization: first steps 2020-03-12 20:52:23 +01:00
searchwindow.hpp SearchWindow 2020-02-12 11:49:32 +01:00
seasonwindow.cpp Internationalization: first steps 2020-03-12 20:52:23 +01:00
seasonwindow.hpp SeasonWindow: added TODO 2020-01-18 22:43:55 +01:00
small.ico New icon 2019-05-18 13:45:36 +02:00
sqlite3.c Initial support of database 2019-06-04 21:54:00 +02:00
sqlite3.h Initial support of database 2019-06-04 21:54:00 +02:00
sqlitepp.hpp SQLitepp: added TODO 2020-01-18 22:45:17 +01:00
tv_rename_gui.desktop Fix desktop file, add uninstall to Makefile 2019-05-18 15:05:06 +02:00
tv_rename_gui.ico New icon 2019-05-18 13:45:36 +02:00
tv_rename.cpp Reorder includes 2020-04-01 13:46:28 +02:00
tv_rename.hpp TV_rename: return a vector of languages for windows 2020-02-25 10:19:24 +01:00
tv_rename.svg Add desktop file for linux 2019-05-18 13:45:46 +02:00

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