This project has moved. For the latest updates, please go here.

Error during rename with colons

Topics: bug
Oct 12, 2014 at 6:07 AM
Hello, I'm having a problem with renaming some files. The script works very well except when a colon is used in the name. I checked my config file and I do have an entry in there to change colons to a dash. Perhaps the change of chars doesn't apply to the finished filename? Heres the last few lines up to the error:
... retrieved episode information from cache
... testing against the subtitle metadata
... MatchEpisodePrecisely: trying to find an episode that matches 'The Livelong Day'
... matched once; returning season and episode number
... got to broadcast date test with this_episode = 7
... got to recording date test with this_episode = 7
... matched against season 5 and episode 7
... got interim name of NCIS: Los Angeles - S05E07 - The Livelong Day.wtv
... remapped name is NCIS: Los Angeles - S05E07 - The Livelong Day.wtv
... renaming to 'NCIS: Los Angeles - S05E07 - The Livelong Day.wtv'
... error during rename: Cannot rename the specified target, because it represents a path or device name.
The same thing happens with NCIS NO
... MatchEpisodePrecisely: trying to find an episode that matches 'Breaking Brig'
... matched once; returning season and episode number
... got to broadcast date test with this_episode = 3
... got to recording date test with this_episode = 3
... matched against season 1 and episode 3
... got interim name of NCIS: New Orleans - S01E03 - Breaking Brig.wtv
... remapped name is NCIS: New Orleans - S01E03 - Breaking Brig.wtv
... renaming to 'NCIS: New Orleans - S01E03 - Breaking Brig.wtv'
... error during rename: Cannot rename the specified target, because it represents a path or device name.
TVDB lists them with colon's in the name as you can see.
Here is my config file:
<?xml version="1.0" encoding="UTF-8"?>
<config>
   <default_language></default_language>
   <xml_cache></xml_cache>
   <recordings></recordings>
   <accept_single_bme></accept_single_bme>
   <move_to></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>false</create_series_folder_if_missing>
   <delete_if_dest_exists>true</delete_if_dest_exists>
   <rename_if_dest_exists>false</rename_if_dest_exists>
   <move_episode_if_unmatched>false</move_episode_if_unmatched>
   <min_age>5</min_age>
   <change_char from="&amp;" to="and" />
   <change_char from="?" to="" />
   <change_char from="/\" to="-" />
   <change_char from=":" to="-" />
   <ignore_series></ignore_series>
   <only_series></only_series>
   <create_undo_logs>true</create_undo_logs>
   <create_processing_logs>true</create_processing_logs>
   <log_path>S:\log</log_path>
   <move_unmatched_series></move_unmatched_series>
   <move_unmatched_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>false</convert_to_dvrms>
   <delete_wtv_after_conversion>false</delete_wtv_after_conversion>
   <move_wtv_after_conversion></move_wtv_after_conversion>
   <commercial_metadata_path></commercial_metadata_path>
</config>
The script is being called by Win8 task scheduler using a batch file that points to the config file using the -configurationfile option.

Any ideas?