Hi,
I need to export all the posters and screenshots from my PVD database. Most (if not all) movies have a single poster (which is really the DVD box cover)... some have a single screenshot, while others may have two or three. I've played around with the XML export template, but can't get it to do what I want.
I'd like to export the posters with filenames like "<title>-poster-<n>.jpg", and the screenshots as "<title>-screenshot-<n>.jpg", where "<title>" is the movie title, and "<n>" is the number of the image (where multiple images exist for a given movie).
So I modified a copy of the "XML (Movies)" export template, deleting most of the movie fields except for Title, adding "<screenshots>{%value=screenshots}</screenshots>"after the Posters line, and added the following line in the "%OPTIONS% section:
imagenameformat="%t%-%fs%-%in%%ext%"
Running the export seems to generate images with the correct filenames in the "images" subfolder. "%t%" gets replaced by the movie title, "%fs%" is replaced by either "poster" or "screenshot", "%n%" gets replaced by a number (usually "1"), and "%ext%" gets replaced by ".jpg", as expected.
However, PVD is only exporting the FIRST image in each category. In other words, if a movie has multiple posters or screenshots, PVD only exports the first one.
How do I modify this so that it exports ALL the posters and screenshots, and numbers them appropriately?
aimhere