Page 1 of 1
[REQ] Copy fields from original title to translated title
Posted: 2007-05-06 11:18:22
by DarthPeacemaker
When it is imported a single film is possible to fill up the fields "original title" and "translated title" with the same name of the file (avoid extension).
Also, it is possible to do an script that it does
If Original title is empty then original title =translated title
else
If translated title is empty then translated title= original title
Thanks
Posted: 2007-05-06 16:38:02
by antp
In Tools -> Options -> Media file importation there is an option "Import filename as title".
For the script, you can do this:
Code: Select all
program NewScript;
begin
if GetField(fieldOriginalTitle) = '' then
SetField(fieldOriginalTitle, GetField(fieldTranslatedTitle));
if GetField(fieldTranslatedTitle) = '' then
SetField(fieldTranslatedTitle, GetField(fieldOriginalTitle));
end.
Posted: 2007-05-06 17:01:23
by DarthPeacemaker
antp wrote:In Tools -> Options -> Media file importation there is an option "Import filename as title".
For the script, you can do this:
Code: Select all
program NewScript;
begin
if GetField(fieldOriginalTitle) = '' then
SetField(fieldOriginalTitle, GetField(fieldTranslatedTitle));
if GetField(fieldTranslatedTitle) = '' then
SetField(fieldTranslatedTitle, GetField(fieldOriginalTitle));
end.
Really works.
Thanks
