Examples of Renaming

I use plex and this is how I have my single task handle both movies and tv shows.

\%ismovie%<Movies\%showname%%ifairdate%< (%airyear%),>\%showname%,TV\showname%%ifpremieredate%< (%premiereyear%),>\Season %ifseason%<%season%##,00>\%showname% - S%ifseason%<%season%##,00>E%episode%## - %episodename%>

Let’s break it down:
%ismovie%<> This is a logic true/false check. If it’s a movie the first segment up to the comma is used if false use the 2nd segment. I have some nesting of these type of check within all of this as well.
So, if it’s a movie the path is going to be Movies\ then the show name and if there is an airdate include (air date) in the folder name otherwise don’t add anything to folder name. Then the name of the show/movie.
End Result: \Movie\The Bourne Ultimatum (2007)\The Bourne Ultimatum.mp4

If it’s not a movie then it’s going to be placed in TV folder. Then a folder for the name and if there is a premieredate put that in (). A sub folder for the Season is created and if there is a season it will put leading zero season number and if there is not season it will do 00. So, it would look like Season 01 if there is a season and if there isn’t it would be Season 00. Then the file is named Show name - S then the same season number logic as folder name, E episode number - episode name.
End Results: \TV\Breaking Bad (2008)\Season 01\Breaking Bad - S01E01 - Pilot.mp4

I don’t put the year in the filename and instead in the folder name the file(s) sit under. Plex is able to use this to match without issue. But it could be matching due to metadata as well.

But for a basic include the year for a movie you can use
%showname% (%airdate%)

2 Likes