English > Scripts and Templates
Export to XBMC
nostra:
In main template you add:
--- Code: ---{%value=actors template="pages\actors.tpl"}
--- End code ---
In actors.tpl:
--- Code: ---<actor>
<name>{%param=name}</name>
<role>{%param=role}</role>
</actor>
--- End code ---
The same for directors, writers, etc.
CAD:
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
nostra:
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...
rick.ca:
--- Quote from: rick.ca on September 16, 2009, 05:36:23 am ---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.
--- End quote ---
--- Quote from: rick.ca on September 16, 2009, 10:43:07 pm ---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.
--- End quote ---
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?
nostra:
Yes, it seems like I will need to add posternearfiles in the next version...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version