Personal Video Database
English => Development => Topic started by: Nautilus2067 on May 27, 2013, 08:17:46 am
-
Is it possible to save posters, screenshots etc with out creating any export text file? First I have tried to export the pictures with my MovingPictures .nfo file, but I do not want to have any XML entries for the pictures in the created .nfo file. I just want the pictures to be saved in the Folder with the movie file. This I could not get done. So as a workaround I wrote another export template to export the pictures which creates a separate file called images.nfo that can be deleted afterwards. Not beautiful, but working. Is there any other way?
Thanks,
Oliver
-
Hi Oliver,
I would export the posters with your .nfo file, just as you tried first.
As a workaround you could put the image references into XML-Comments:
<!-- commented out -->
You can also export the posters without any links to them:
If you reference a poster subtemplate in your .nfo export template...
{%value=poster params="full" template="poster.ptm" maxvalues="1" width="150" height="150"}
...your poster subtemplate (poster.ptm) could be like this:
{#StringReplace '{%param=imgdata}' '{%param=imgdata}' ''}
The trick is, PVD still exports the posters but at the same time this StringReplace statement replaces all references to the images with literally nothing.
-
{#StringReplace '{%param=imgdata}' '{%param=imgdata}' ''}
The trick is, PVD still exports the posters but at the same time this StringReplace statement replaces all references to the images with literally nothing.
I like that idea and will try it. Thanks for the hint.
-
Thanks svenne, it works perfectly.
Next questions:
I am saving posters and screenshots with the option
imagenameformat="%fs%%in%%ext%"
That leads to images like:
poster1.jpg
poster2.jpg
screenshot1.jpg
screenshot2.jpg
screenshot3.jpg
Pretty good for the beginning. But:
- is it possible to replace screenshot with backdrop?
- is it possible to save 1 poster as folder.jpg?
-
how to export posters for the highlighted movies only ?
It seems like the export button, exports all movies in the database ;/
-
Time has passed since I used PVD the last time... But I think you have to restrict the entries via search function. All entries visible will be exported wether marked or not.
-
Time has passed since I used PVD the last time... But I think you have to restrict the entries via search function. All entries visible will be exported wether marked or not.
yep, thanks m8