Newbie Help Script adding text to media label field

If you need help on how to use the program
Post Reply
daquint
Posts: 7
Joined: 2006-12-03 07:34:10

Newbie Help Script adding text to media label field

Post 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
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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.
daquint
Posts: 7
Joined: 2006-12-03 07:34:10

Post by daquint »

Thanks - this worked great!

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

Is it FieldMediaLabel,... ?

Thanks!
antp
Site Admin
Posts: 9639
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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 ;)
Post Reply