Page 1 of 1

Use custom pictures in a custom directory?

Posted: 2015-03-01 14:02:46
by Teebee
Hi,

i would like to use a custom folder/directory, where i store my movie pictures with their imdb number, eg. Interstellar would be tt0816692.jpg , so when i open my catalog he opens the file, and picks the right picture from the custom directory according to the URLfield. Is this possible?

Posted: 2015-03-01 15:03:13
by antp
When you add a picture to the catalog, there is an option to link to the original file rather than copying/importing it.
But you'll still have to manually assign the picture to the movie.
By script it may be possible to do that for a whole batch of files though, if needed.

Posted: 2015-03-01 15:18:39
by Teebee
i made this to export the pictures:

Code: Select all

program ExportPictures;
 var
  movieurl: string;
  path: string;

begin
  path := 'C:\Users\Teebee\Pictures\moviecollectie\';
  movieurl := StringReplace(getfield(fieldurl), 'http://imdb.com/title/', '');
   if (path = '') then
    Input('Folder path to store pictures', 'Folder path:', path);
  ExportPicture(path + movieurl + PictureExt);
end.
but importing i still havent gotten around to.