Go to file
2020-01-18 21:16:43 +01:00
unix Network: add lastResponseCode 2020-01-17 14:01:10 +01:00
windows Network: add lastResponseCode 2020-01-17 14:01:10 +01:00
.clang-format Formatting 2019-06-01 21:54:45 +02:00
.gitignore Ignore dotfiles 2019-07-02 16:27:48 +02:00
databasewindow.cpp Databasewindow: formatting 2020-01-18 21:16:43 +01:00
databasewindow.hpp Databasewindow: formatting 2020-01-18 21:16:43 +01:00
filesystem.hpp Filesystem: refactor 2020-01-15 18:21:27 +01:00
functions.cpp Fix possible error when adding to database 2020-01-17 20:54:26 +01:00
functions.hpp Fix possible error when adding to database 2020-01-17 20:54:26 +01:00
gui.cpp Make GUI work 2020-01-16 11:12:22 +01:00
json.hpp Somewhat working with API (push before major refactor) 2020-01-15 10:00:25 +01:00
LICENSE Guess I should set a license 2018-10-08 20:51:52 +00:00
main.cpp More refactoring 2020-01-15 22:23:11 +01:00
mainwindow.cpp Fix possible error when adding to database 2020-01-17 20:54:26 +01:00
mainwindow.hpp Mainwindow: formatting 2020-01-17 14:14:24 +01:00
Makefile Makefile: add stuf for gui in Linux 2020-01-17 14:19:18 +01:00
network.hpp Network: add lastResponseCode 2020-01-17 14:01:10 +01:00
progress.cpp Fix crash on save in 'DatabaseManage' (and possibly other stuff that uses progresswindow) 2020-01-17 16:24:47 +01:00
progress.hpp Progress: add gui progress capability 2020-01-17 14:05:30 +01:00
progresswindow.cpp Progresswindows 2020-01-17 14:06:31 +01:00
progresswindow.hpp Progresswindows 2020-01-17 14:06:31 +01:00
README.md Fix README.md for gitlab 2019-05-18 13:22:31 +00:00
resource.h Add Windows support 2019-02-04 17:39:48 +01:00
seasonwindow.cpp Formatting 2019-06-01 21:54:45 +02:00
seasonwindow.hpp Add Windows support 2019-02-04 17:39:48 +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 Add last_insert_rowid to sqlitepp and use it 2019-07-07 16:02:01 +02:00
tv_rename_gui.cpp Comments, don't try to read pattern when creating appdata folder 2019-02-05 01:52:43 +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_gui.rc Add Windows support 2019-02-04 17:39:48 +01:00
tv_rename.cpp Fix possible error when adding to database 2020-01-17 20:54:26 +01:00
tv_rename.hpp Fix possible error when adding to database 2020-01-17 20:54:26 +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