This project has moved and is read-only. For the latest updates, please go here.

Help to get started

Topics: question
Jan 5, 2013 at 3:21 PM

Hello

I'm having trouble getting this working at all. I hope I'm missing something simple.

Using V0.17 on Windows 7 64bit.

I have the three files and the XML folder in the "Doc Martin" folder.
There are two files and an empty folder in the XML folder. Should there be anything in the EPInfo folder?  

I've made some amendments to the WTV_MetaRenamer.xml file. (See below)
I've opened PowerShell (x86) as Administrator.
I've changed the folder to D:\Recorded TV\Doc Martin
I ran this command: Set-ExecutionPolicy Unrestricted

When I run ./wtv-metarenamer.ps1 I get a load of red text which says mostly:

You cannot call a method on a null-valued expression.
At D:\Recorded TV\Doc Martin\WTV-MetaRenamer.ps1:2885 char:31
+ if($(if ($($folder.GetDetailsOf <<<< ($null, $index)) -eg $attribute_recording_time)
+ CategoryInfo : Invalid Operation: GetDetailsOf: String ) [], RuntimeException
+FullyQualifiedErrorID: InvokeMethodOnNull 

The Log file contains:
WTV-MetaRenamer v0.17
... failed to find attribute 'Title'
... failed to find attribute 'Date Created'
... failed to find attribute 'Subtitle'
... failed to find attribute 'Program Description'

I've tried in a couple of folders and get the same type of error.

WTV_MetaRenamer.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<config>
   <default_language>en</default_language>
   <xml_cache>D:/Recorded TV/Doc Martin/</xml_cache>
   <recordings>D:/Recorded TV/Doc Martin/</recordings>
   <accept_single_bme>false</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</season_folder_name>
   <specials_folder_name>Specials</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="," />
   <ignore_series></ignore_series>
   <only_series></only_series>
   <create_undo_logs></create_undo_logs>
   <create_processing_logs>D:/Recorded TV/Doc Martin/</create_processing_logs>
   <log_path>D:/Recorded TV/Doc Martin/</log_path>
   <move_unmatched_series></move_unmatched_series>
   <move_unmatched_episodes></move_unmatched_episodes>
   <move_duplicate_episodes></move_duplicate_episodes>
   <move_ignored_series>D:/Recorded TV/Doc Martin/temp</move_ignored_series>
   <attribute_title>Title</attribute_title>
   <attribute_date_created>Date Created</attribute_date_created>
   <attribute_subtitle>Subtitle</attribute_subtitle>
   <attribute_program_description>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>D:/Recorded TV/Doc Martin/</move_wtv_after_conversion>
   <commercial_metadata_path>D:/Recorded TV/Doc Martin/</commercial_metadata_path>
</config>

Please advise how to get started. Thank you.