Page 1 of 1

Newbie Help Script adding text to media label field

Posted: 2006-12-03 07:38:51
by daquint
Hi,

New here - very much love the ANT catalog in conjunction with Media Portal My Films plugin.

It is having an issue where its needs the full path of the AVI files on my network.

Of course, i didnt realize this until 500 movies in.

SO i have to go back and edit - Is there an easy way to do this via script?

I basically want to take half of them and prefix each like the following:

Old:
starwars2.avi
New:
\\Tower\disk1\starwars2.avi

and the other half like the following:
Old:
moviename1.avi
New:
\\Tower\disk9\moviename1.avi

If this is possible, can any one help me with a script?

Thanks!

daquint

Posted: 2006-12-03 12:48:20
by antp
Hi,

The script woud look like this:

program NewScript;
begin
SetField(FieldUrl, '\\Tower\disk1\' + GetField(fieldUrl));
end.

This can be applied to all selected movies. If the "disk" par is common for a lot of movies (half of them as you said?) if few clicks it should be done.

Posted: 2006-12-03 19:40:50
by daquint
Thanks - this worked great!

However I need to edit the Media label instead of the URL.

Is it FieldMediaLabel,... ?

Thanks!

Posted: 2006-12-03 21:58:27
by antp
FieldMedia (a little mistake, I know, it would have been more logical to call it FieldMedialabel or FieldLabel)
Field names are listed in the Help file ;)