There was a request to post the ps1 file, and there was a response with the link to download it:
http://wtvmetarenamer.codeplex.com. Sorry, I should have included that. To configure and customize for your use, you have to edit the "WTV-MetaRenamer.xml" file. Here is what I have for your reference:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<default_language></default_language>
<xml_cache></xml_cache>
<recordings>E:\Recorded TV</recordings>
<accept_single_bme></accept_single_bme>
<move_to>E:\Recorded TV</move_to>
<move_to_single_folder></move_to_single_folder>
<move_to_season_folders></move_to_season_folders>
<season_folder_name></season_folder_name>
<specials_folder_name></specials_folder_name>
<season_number_format></season_number_format>
<episode_name_format></episode_name_format>
<create_series_folder_if_missing></create_series_folder_if_missing>
<delete_if_dest_exists></delete_if_dest_exists>
<rename_if_dest_exists></rename_if_dest_exists>
<move_episode_if_unmatched></move_episode_if_unmatched>
<min_age></min_age>
<change_char from="&" to="and" />
<change_char from="?" to="" />
<change_char from="/\" to="-" />
<change_char from=":" to="," />
<change_char from="*" to="-" />
<ignore_series></ignore_series>
<only_series></only_series>
<create_undo_logs></create_undo_logs>
<create_processing_logs></create_processing_logs>
<log_path></log_path>
<move_unmatched_series>E:\Single Recordings</move_unmatched_series>
<move_unmatched_episodes>E:\Recorded TV\Other Episodes</move_unmatched_episodes>
<move_duplicate_episodes></move_duplicate_episodes>
<move_ignored_series></move_ignored_series>
<attribute_title></attribute_title>
<attribute_date_created></attribute_date_created>
<attribute_subtitle></attribute_subtitle>
<attribute_program_description></attribute_program_description>
<attribute_recording_time></attribute_recording_time>
<attribute_broadcast_date></attribute_broadcast_date>
<convert_to_dvrms></convert_to_dvrms>
<delete_wtv_after_conversion></delete_wtv_after_conversion>
<move_wtv_after_conversion></move_wtv_after_conversion>
<commercial_metadata_path></commercial_metadata_path>
</config>
It's basically the default file, here are some of the key changes I made for my setup
This is the default folder where I have WMC saving the .wtv files
<recordings>E:\Recorded TV</recordings>
This is the folder where WTV-Metarenamer moves the files after getting renamed. This is the same as the same root folder. All renamed files of series are moved to subdirectories that are created under this folder.
<move_to>E:\Recorded TV</move_to>
This is the folder where single shows such as movies or specials are moved.
<move_unmatched_series>E:\Single Recordings</move_unmatched_series>
This is the folder where series are moved that could not be renamed.
<move_unmatched_episodes>E:\Recorded TV\Other Episodes</move_unmatched_episodes>
the "change_char" attribute is used to substitute characters in the filename. For example, this string:
<change_char from="&" to="and" />
..will change a name such as "Mike & Molly" to "Mike and Molly"
My wife likes to watch MASH. Although the original .wtv filename will include "M-A-S-H" as a part of it, the script will look up the episode and based on the and attempt to rename it to M-A-S-H, when the script runs and looks up the episode, it tries to rename the file to include "M*A*S*H" as a part of the file, which is not a valid filename
It's not perfect but gets most of them. Each time it runs there is a logfile generated which you can look at to see why a series may not get converted. You can probably tweak the xml file to refine it further for more accuracy.
In Plex, I add a library section of type "TV Shows" for E:\Recorded TV, and a library section of type "Movies" for E:\Single Recordings so they'll show up.
There is one problem with the above configuration - series not recognized are moved into a folder under "Recorded TV" called "Other Episodes". These files are not renamed. Plex misinterprets the folder "Other episodes" as the "Preston Episodes" with all of the files under there. This folder should be moved out and mapped as a library of type "Movies" or I should look at these episodes and the log files and try to get them renamed properly but I haven't bothered yet. Anyway, hope this helps...