Collection of tools for renaming and unmangling TV episode filenames. Compares episodes against the TheTVDB to get proper ordering.
usage: __main__.py [-h] [-l] [-s] [-x ext] [-d] [-n season_number] [dirs ...]
renames TV episodes or Season directories
positional arguments:
dirs the directories to work on
options:
-h, --help show this help message and exit
-l Use lexigraphical sort instead of natural sort
-s Dry run, don't actually rename any files/dirs
-x ext The file extensions to target. Defaults to .mkv, .avi, .mp4
-d Treat the input dir as a dir containg of season dirs to rename
-n season_number The season number to rename episode files to. Ignored if -d is passed.
usage: multipart.py [-h] [-l] [-s] [-x ext] [--absolute] [--streaming] series_id [root_dir]
Program that renames multipart tv episodes into their aired ordering
positional arguments:
series_id The series id of the show in question on thetvdb
root_dir the series directory to work on. Defaults to the current working directory
options:
-h, --help show this help message and exit
-l Use lexigraphical sort instead of natural sort
-s Dry run, don't actually rename any files/dirs
-x ext The file extensions to target. Defaults to .avi, .mp4, .mkv
--absolute Treat input as absolute ordering
--streaming Treat input dirs as streaming ordering
usage: unmangle.py [-h] [-l] [-s] [-x ext] [--absolute] [--streaming] [-i] series_id [root_dir]
Program that renames tv episode orderings from dvd/absolute/streaming order to aired order
positional arguments:
series_id The series id of the show in question on thetvdb
root_dir the series directory to work on. Defaults to the current working directory
options:
-h, --help show this help message and exit
-l Use lexigraphical sort instead of natural sort
-s Dry run, don't actually rename any files/dirs
-x ext The file extensions to target. Defaults to .mp4, .mkv, .avi
--absolute Treat input as absolute ordering
--streaming Treat input dirs as streaming ordering
-i Ignore errors mistmatch between episode count on thetvdb and the local filesystem