To start using it, you first need to install the script.
pip install series-renamer
series-renamer
For changing season number, use option 1 whereas for episode number, use 2.
When changing season number, you can put these types of values.
#N
- Explicitly specify the season number N
. This season number value will be used for all future episodes and so it is highly recommend to use this option only when the folder being scanned has episodes from a single season.N
where N
is a positive/zero number - Changes the season number to the N
th item in array i.e. changes season index to N
. This index will be remembered for future episodes. Please keep in mind that here array starts from 0.-1
- Sets the season to 0 meaning no season. In this case, episode is looked through its absolute number of episode.When changing episode number, you can put these types of values.
N
where N
is a positive/zero number - Changes the episode number to the N
th item in array i.e. changes episode index to N
. This index will be remembered for future episodes. Here also index starts from 0.In case of season and episode numbers, any custom change made by the user (by pressing 1 or 2) is remembered by the script and used for future episodes. But when the number of
array items is equal to 1, then season number is set to #N
or 0 and episode number is set to array[0].
Multi-episodes are supported as long as they are of the format StartEp-EndEp (example, Friends [10x17-18] - The Last One.mkv).
series-renamer --config
. This will open the config.json file in the default text editor. There are currently 2 settings in series-renamer.
namingFormat
The format to rename episodes. Variables are enclosed in {{..}}. Common variables are -
replaces
Temporary find-and-replace, series-renamer does when scanning file names for numbers. This feature can be used to rule out unwanted potential numbers and even fix detected numbers.
For example, my One Piece episodes had names like one piece 657 -u0026 658.mp4. Now as series-renamer only detects N1 - N2
as multi-episode, so I replaced '-u0026' with '-'.
Also some episodes were like one piece 456 & 457 blah blah YouTube.mp4. So I also replaced '&' with '-'.
Therefore replaces became -
"replaces": {
"&": "-",
"-u0026": "-"
}
NOTE - To prevent some number from being detected by series-renamer, precede it by ~ (tilde). Example my beyblade episode was like Beyblade 145 03.mp4, where 145 was some number that gave nothing useful. So I replaced 'Beyblade ' with '~'.
"replaces": {
"Beyblade ": "~"
}