English > Scripts and Templates
Script: Import poster with same filename as movie from same folder
Einar:
You're welcome.
Thanks for your suggestion. There is no explicit "back cover" field in PVD, but it is possible to add an image of a back cover to the "Front Cover" field. It does not seem to be possible to control the order of the images added to "Front Cover" though.
I will keep it in mind.
rick.ca:
What might be useful is a script that could be user-adapted to a variety of different circumstances. It could offer the option to specify the image to save (same filename, specific name or all images) to each of the image containers (imagelist, screenshots, froncover and cdcover). Froncover and cdcover only take one image, so I'm assuming "all images" would result in only the first image found being saved. Just to be clear: I'm thinking of nothing more than a well-documented script that most users would be able to edit to make these choices.
One might configure this script to save "same filename" as a poster, "front" as froncover, "back" as cdcover and "all images" as screenshots. It would be nice if "all images" excluded images saved elsewhere (i.e., it's "everything else"). And I'm assuming all image types can be handled without being user-specified. I particularly like the idea of dumping all images into screenshots. That provides a way to see them all in PVD—so individual images could be saved and reloaded elsewhere (e.g., the "extra" images might be alternate posters). And if they're not needed, they're easily deleted with the Remove all screenshots command.
case56:
Hi all
Einar your script has been very useful to me, I'm curious to know if its possible for a script such as yours to import multiple images from folders into PVD as posters. I've attempted to edit your script (hope you don't mind me doing this) to try and get 2 images 'Front.jpg' and 'Back.jpg' imported as subsequent posters. Since I'm such a script newbie, I haven't been able to figure it out. Everything I've tried has resulted in only one image being loaded, I'm finding it difficult as I'm not sure how PVD handles poster imports.
Does the GetDownloadURL function need to be called twice for this to happen? or can 2 file paths be looped into the result? or can a string of both file paths be passed to the result? and ontop of all this the AddImageURL procedure confuses me aswell, I am a newb however, can any one help me understand?
Einar:
Hello.
Sorry for the late answer case56, I had too much to do recently. You're welcome to edit the script. It's nice to hear that it is useful.
I looked into the Problem of importing two images and, unfortunately, have to say that I can not find a solution either. After some experimenting it seems that the AddImageURL hasn't any effect at all (?) The image import happens when the return value (Result) of the GetDownloadURL function contains a path to an image file. But it also stops processing after this.
Even with some modification and a second, recursive, call of GetDownloadURL the second image is not added. The second image path could be obtained correctly though. Thus, the first path is returned and the image added, then the second path is returned but the image isn't added. So far I have no idea how to solve this and why the AddImageURL isn't working.
Hopefully someone else can help.
Best regards,
Einar
pelisdb:
Hello:
I can't seem to find this script in the forum, does anybody have it?
Also, I'm trying to import posters on my local HD with AddImageURL, but it doesn't happens anything. I have verified the path is right, but maybe that command doesn't works with local files? I'm on PVD 1.0.2.7.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version