Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Name:
Email:
Subject:
Message icon:

Attach:
(Clear Attachment)
(more attachments)
Allowed file types: gif, jpg, png, txt, tpl, lng, ini, pvd, psf, ini, cfg, csv, zip, xml, pas, 7z
Restrictions: 4 per post, maximum total size 1024KB, maximum individual size 1024KB
Note that any files attached will not be displayed until approved by a moderator.
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the fifth word in this sentence?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: CAD
« on: February 20, 2019, 06:46:29 pm »

You could have a look at
http://www.videodb.info/forum_en/index.php/topic,1453.0.html.
it was a long time ago when I wrote xbmc export, but from memory it dumped all images into the movie folder.

Plugins have been updated to Kodi, probably do same thing but better.
You could just use kodi export- It will give you a .nfo file with movie info + poster
Posted by: VVV_Easy_Programing
« on: December 29, 2018, 09:40:56 pm »

I'm not too sure of the answer.
To make multiple outputs on a field when exporting you need one auxiliary file dummy template "*.tpl" with the main file template "*.ptm"

It's hard to explain. Have you tried your export files for KODI? See post:
http://www.videodb.info/forum_en/index.php/topic,1496.msg20070.html#msg20070

I think you should use an instruction similar to (with maxvalues more than 1):

<!-- Exporting PVD movie images with a dummy template -->
{%value=poster template="KODI_Templates\images.tpl" maxvalues="1" params="full"}


with the "images.tpl" like:

{%param=imgid}
{#StringReplace '{%param=imgdata}' '{%param=imgdata}' ''}


But I don't know if it works (at least in the KODI templates works for one Poster or one ScreenShot or for the string fields)
Posted by: AimHere
« on: December 20, 2018, 10:53:03 pm »

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:

Code: [Select]
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
anything