I would like to rename all Movies to the format: "Movie - Title (Release Year)".
- The first thing I need to do is create the action that will rename a movie:
- Tools > Settings
- Click New Profile
- Give it a Description such as "Rename Movies"
- For name use something like "renamemovies"
- Click Add
- Select Durrant.Plugins.FWThrottle, Click Select, Then OK
- Click Add again
- Select Durrant.Plugins.AdvancedFileRename, press Select, enter the following info:
ContextFile: InputFile
NamePattern: Movie - %Title% (%WM/OriginalReleaseTime%)
WhenFileExists: AppendGuid
At this point, if we were to run our action, the file name would change to:
"Movie - Blade Trinity (2004-01-01T000000.0000000-0800).dvr-ms" - Press OK
- Click Add again
- Select Durrant.Plugins.RenameFileWithRegex, press Select, enter the following info:
ContextFile: InputFile
FindRegex: (\d{2}(\d{2}))-(?=0?(\d+))(\d{2})-(?=0?(\d+))(\d{2})T\d+.\d+-(\d{2})(\d{2})
ReplaceRegex: $1
At this point, the file name becomes:
The file name becomes: "Movie - Blade Trinity (2004).dvr-ms" - Press OK
- Add other things to the profile which should happen, such as finding commercials, writing to an XML file, etc.
This
is an important step if you use ComSkip Add-in. I simply copied the
default actions that happen in the "FindCommercials" profile. To do
that: - Add Durrant.Plugins.FindCommercials (don't change any of the settings)
- Then add Durrant.Plugins.DumpCommercialsXml
- Press Save to save the profile.
- Press Save again in the DVRMSToolboxSettings window.
- The next thing you need to do is create a processing condition, so that all movies are automatically renamed:
- Tools > Processing Condition Editor
- New Condition
- For description put something like "Rename Movies"
- In the combobox scroll down to the profile you created from step 1 ("Rename Movies" in my example)
- Press Add
- Choose: WM/Genre Contains Movies
- Press OK
You should see "WM/Genre" Contains "Movies" in the list - Press Save
You should see the Processing condition you just created as well as "Process Files" and "Every File". - Using Raise Priority and Lower Priority, move the new profile you just created ("Rename Movies") inbetween "Processed Files" and "Every File".
- Press Save
Now whenever a new file is created in your watched folder or when you use the Process Directory tab, if a movie is found it will rename the movie, and then run any other actions you added to the profile.