Post reply

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: VVV_Easy_Programing
« on: May 21, 2017, 07:59:55 pm »

It seems that you have done all right so we must test where its the fault.
1) See if you have the folder and the templates as the capture screen 1.
2) See if you use one of the three templates export like the capture screen 2 (the other two are the same)
3) Test that the stored folder in PVD for every films is good and you have the rights for write in it (the nfo and jpg's are saved in the film folder by the template).
4) I use some custom fields: <!-- Custom PVD Fields necesaries 'Set' 'IMDB_Votes' 'Top_250' 'FilmAffinity_Votes' --> if you don't use this fields, erase the lines with this lines:
For instance for the template "KODI NFO_Files Easy.ptm" delete lines:
For 'Set': lines 48 and 49=
      <!-- The Set PVD custom field contains film collection or saga -->
      <set>{%value=Set custom="true"}</set>
For 'IMDB_Votes': line 21=
       <votes>{%value=IMDB_Votes custom="true"}</votes>
For 'Top_250': line 29
       <top250>{%value=Top_250 custom="true"}</top250>
For 'FilmAffinity_Votes': line 25=
       <votes>{%value=FilmAffinity_Votes custom="true"}</votes>
   Note: If you don't use two ratings better delete lines 23,24,25 and 26=
        <rating name="FilmAffinity" max="10">
            <value>{#StringReplace '{%value=orating}' ',' '.'}</value>
            <votes>{%value=FilmAffinity_Votes custom="true"}</votes>
        </rating>

I think that the custom fields may be the principal problem.
I use regularly the templates and they works fine and Kodi catch the information well.
Let me know if you can solve the problem.

Posted by: afrocuban
« on: May 15, 2017, 11:19:42 pm »

Hello and thank you for your contribution. I have extracted template for Kodi Krypton to a Template folder as you described, but nothing happens - after pressing Export button PVD opens root location of PVD in Explorer. No .nfo, no .jpg files anywhere, whichever Kodi template I use.

Any idea please? Thank yo in advance.
Posted by: VVV_Easy_Programing
« on: March 19, 2017, 10:49:12 am »

New version for Kodi 17.0-Kripton: It allows several ratings. Although is made for IMDB and FilmAffinity is easy to adapt to your own ratings.

You have three templates: Only NFO, NFO+fanart.jpg, NFO+folder.jpg (movie poster).
If you have PVD with all this information, you must applies the three and so in Kodi you will not need to scrap, only to read the nfo files.
Posted by: VVV_Easy_Programing
« on: January 20, 2017, 09:22:39 pm »

New version that pass artist thumb url to KODI if you have the URL in the translate name (see http://www.videodb.info/forum_en/index.php/topic,4086.0.html#new ).
You have three templates: Only NFO, NFO+fanart.jpg, NFO+folder.jpg (movie poster).
Posted by: VVV_Easy_Programing
« on: February 12, 2014, 07:51:32 pm »

New simple versión (I tried and it Works)
Posted by: VVV_Easy_Programing
« on: January 19, 2014, 09:09:54 pm »

Fixed bug seconds /minutes
Posted by: VVV_Easy_Programing
« on: January 18, 2014, 04:07:34 pm »

Fixed bug in exporting images that blocked (missing a space between the parameters)
Posted by: VVV_Easy_Programing
« on: January 17, 2014, 07:08:49 pm »

I attached a zip that can help: you just must to unzip in the folder Templates PVD (the file and the folder of the zip).
I tried to make it as complete as possible so the Template needs to have three Custom Fields 'Set' 'IMDB_Votes' 'Top_250' (with underscore because in other case it is blocking the Template). You must define in the Preferences of PVD.
In any case you can delete these lines and other information that you are not interested (eg exporting images).
If you want to renew your XBMC library, I suggest using "SQLiteSpy" or "SQLite Database Browser" to open the database XBMC "MyVideos75.db" and copy of the C09 column (code IMDB) and the column C22 (movies folder) of the table "movies" to Excel .
In Excel you get the URL of the movie like "http://www.imdb.com/title/" + tt****** + "/" and you import the table PVD.
To return to XBMC:
- With PVD scratch the information you want, you use the Template for NFO files.
- With RenameMaster you rename the images to the names of XBMC "folder.jpg" "Fanart.jpg".
- With XBMC empty library, make another tracing your movies with the scraper that you use. It will ask you if you use the Internet or NFO file.
I hope you serve  (Edito: New version down)
Posted by: Morgenstern72
« on: December 29, 2013, 11:44:09 am »

I appreciate all your work and attempts to explain to us how this is working. Still: I have no idea.

Is there any possibility you could zip a configured "template" and how to use it, just to be able to use PVD as "brain" and XBMC as frontend? I am completely confused at this point how I would do that...which is my fault, since I just can't get what I have to extract out of these postings to make it work.

Thx alot if anyone takes the time to walk me through this :)
Posted by: nostra
« on: January 23, 2011, 06:33:40 pm »

It is already implemented. If you have nearfiles variable set, then all image paths will be relative to this path.
Posted by: zkn
« on: January 22, 2011, 01:33:34 pm »

Yes, it seems like I will need to add posternearfiles in the next version...
so is there such new keyword like "posternearfiles" ?
or is it planned or rejected?
Posted by: nostra
« on: September 18, 2009, 10:01:01 am »

Yes, it seems like I will need to add posternearfiles in the next version...
Posted by: rick.ca
« on: September 17, 2009, 07:49:02 pm »

So the problem, if any, is not with nearfiles. Unless I'm failing to figure out how it's done, the problem is the lack of a function that will to the same thing with image files. From what I've seen, I suppose the same thing could be accomplished if variables for path, filename and full pathname could be used with imagenameformat.

I should point out, I have no particular interest in XBMC. I would like to see a function that works well generally. I think saving an image "beside" a subject file is a common requirement—just as doing so with a text file is. It's also just a good file management practise. What I was expecting was something like "posternearfiles" where posternearfiles="" would result in [full filepath].jpg, posternearfiles="%t" (%y%)%ext%" would result in a renamed file in the same folder, and posternearfiles="C:\My posters\%fn%%ext%" would put them all in one folder with the same filenames ("fn") as the movies.

Nostra, is my understanding of the current capability for exporting posters beside media files correct? Or is there some way to export posters so they have exactly the same file pathname as the media file, but with the image format extension?
Posted by: nostra
« on: September 17, 2009, 03:13:55 pm »

There is an option for credits, but I have never tested it. Now I did took a look at the implementation of this option and saw that it would not function in the current version of the plugin, so you will need to export each type of credits separately until the next version of the plugin...
Posted by: CAD
« on: September 17, 2009, 07:02:48 am »

Hi Nostra.
i have actors working ok.
i cant get credits to work (or understand how grouptemplate works even)

in http://www.videodb.info/forum_en/index.php?topic=766.0 it looks like there is options for exporting credits.


Variables
Variables are formatted like this: {%value=[number] oprion1="value" optionN="value"}
There are also some special variables:
{%value}   (without number or options) is used in subtemplates for fields with multiple values, pages subtemplates for page numbers and in rating subtemplates (rating as stars) for rating value.
{%param=[value]}   is used in subtemplates for fields with different types of data associated (for example actors field can include such information as person id (pid), names, URL, role)
{%groupparam=[value]}   is used in subtemplates that support grouping (for example: awards, filmography) to identify by what parameter values should be gouped


Varables for information fields:
Movies:
...
...
CDCover   66   width, height, template, maxvalues, params
Credits   67   template, grouptemplate
Episodes   68   template, grouptemplate
Posted by: nostra
« on: September 17, 2009, 02:44:43 am »

In main template you add:
Code: [Select]
{%value=actors template="pages\actors.tpl"}
In actors.tpl:
Code: [Select]
<actor>
<name>{%param=name}</name>
<role>{%param=role}</role>
</actor>

The same for directors, writers, etc.
Posted by: rick.ca
« on: September 16, 2009, 10:43:07 pm »

Quote
With my test config this actually worked perfectly using CAD's script.
 I ended up with posters files right next to my .avi file with the same name.

CAD's scripti includes imagenameformat="%t%%ext%", so the posters are named [Title].jpg. That's fine if the movie file is named [Title].avi, but that's not necessarily the case. I want it to be named [filename].jpg. And as a stand-alone function (i.e., not used with nearfiles), I would like it to be able to do [full filepath].jpg (I'm using ".jpg" just to be clear—it would actually be the result of %ext%).

I should point out, I have no particular interest in XBMC. I would like to see a function that works well generally. I think saving an image "beside" a subject file is a common requirement—just as doing so with a text file is. It's also just a good file management practise. What I was expecting was something like "posternearfiles" where posternearfiles="" would result in [full filepath].jpg, posternearfiles="%t" (%y%)%ext%" would result in a renamed file in the same folder, and posternearfiles="C:\My posters\%fn%%ext%" would put them all in one folder with the same filenames ("fn") as the movies.

I suppose this might be generalized to imagenearfiles where there would be a parameter for specifying the image type. I don't know if there's any interest in exporting screen shots and covers, however.
Posted by: deazo
« on: September 16, 2009, 05:56:30 pm »


 Hi all,

 correct me if I'm saying something stupid but from what I have read of your post Rick, you're looking for a way to have the image file saved beside the movie file automatically.
 With my test config this actually worked perfectly using CAD's script.
 I ended up with posters files right next to my .avi file with the same name.
 Unless you meant other types of images? (i.e. not posters?)
Posted by: rick.ca
« on: September 16, 2009, 09:52:21 am »

Quote
do you know what the default behaviour is if filepath field is not populated or it can be changed??

I'm sure it does nothing at all. The only reason I can think of that you would not have File path filled is there is no media. This is a situation I'm very familiar with. Most of the movies in my database are ones I've seen over the years—I don't have media. My media manager (J. River Media Center), however, only records information about media files. I imagine XBMC is the same. The solution is simple. Just create a dummy file for each movie—named in the same manner as any movie file, but with a different extension, like LOG. (Export a list to Excel and use that to create a batch file to create the dummy files.) I configure both PVD and MC to recognize LOG as a valid file type, and both happily find import these files. I then use PvdImport (a MC plugin that pulls information directly from the PVD database) to import PVD data to MC.

If you're just concerned about excluding moves for which there is no media, filter them out before running the export. I doubt it matters, however. Those without files will just be skipped.

I think it's now nostra's turn to help you with the credits. ;)  I hope he'll also tell us if my understanding of how the exporting of posters works is correct.
Posted by: CAD
« on: September 16, 2009, 06:39:33 am »

tks Rick.
you are right.
Code: [Select]
nearfiles=".nfo"This works a treat when file path is populated. :D

i initially never tested with db entries that had this field populated. (and got wierd filepath errors)
after nostra made his changes i assumed a path had to be added for function to work. now i know better what nearfiles does.
THANKYOU. :)

do you know what the default behaviour is if filepath field is not populated or it can be changed??
as a fallback if filepath is is not populated or wrong, would it possible to have files exported to say export folder under preferences/folders and title or something similar as fuile name. pls.

i now have better understanding of how nearfiles is working. i can modify script.  8)
just need to get credits working now  :'( . Then i can strat on xbmc export for tv eps  :D

stay tuned ;D
anything