diff --git a/README.md b/README.md index 904567b..91f530c 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ For this to work your file needs to contain the season and episode number (in ac The program only supports the aired order so far -This is a port of my project https://gitlab.com/zvon/tv_rename - ## 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 @@ -27,3 +25,11 @@ Arguments: `-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) \ No newline at end of file diff --git a/functions.cpp b/functions.cpp index 5c5d4c0..87f3f25 100644 --- a/functions.cpp +++ b/functions.cpp @@ -161,8 +161,10 @@ void printHelp() { std::cout << "\t\t\t\t\%filename - original filename (without filetype extension)" << std::endl; std::cout << "\t\t\t\t\%show - show name from thetvdb" << std::endl; std::cout << "\t\t\t\t\%epname - episode name from thetvdb" << std::endl; - std::cout << "\t\t\t\t\%season - season number, possible to specify leading 0 like this: \%2season" << std::endl; - std::cout << "\t\t\t\t\%episode - episode number, possible to specify leading 0 like this: \%2season" << std::endl; + std::cout << "\t\t\t\t\%season - season number" << std::endl; + std::cout << "\t\t\t\t\tpossible to specify leading 0 like this: \%2season (number means how many leading zeros)" << std::endl; + std::cout << "\t\t\t\t\%episode - episode number" << std::endl; + std::cout << "\t\t\t\t\tpossible to specify leading 0 like this: \%2episode (number means how many leading zeros)" << std::endl; std::cout << "\t\t\tDefault pattern is \"$filename - $epname\"" << std::endl; std::cout << " --trust, -t\t\tDon't ask whether the names are correct" << std::endl; std::cout << " --linux, -x\t\tDon't replace characters characters that are illegal in Windows" << std::endl;