English > Scripts and Templates
Another that exports xbmc
Zacca:
First of all excuse my English but I'm Italian. I speak e little bit of english but i hope google translator do the miracle :D
Very very very thanks to those who wrote PVD. You are my hero ;D
This is my script for all those interested:
XBMC
--- Code: ---%OPTIONS%
replace="&<->&"
replace="<<-><"
replace="><->>"
filter="XML Files|*.nfo"
encoding="UTF8"
imagenameformat="%t%.tbn"
imagepath="\"%OPTIONS%
%HEAD%<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>%HEAD%
<movie>
<title>{%value=title}</title>
<originaltitle>{%value=origtitle}</originaltitle>
<rating>{%value=imdbrating}</rating>
<year>{%value=year}</year>
<plot>{%value=description}</plot>
<tagline>{%value=tagline}</tagline>
<runtime>{%value=length} minuti</runtime>
<mpaa>{%value=mpaa}</mpaa>
<playcount>{%value=count}</playcount>
<genre>{%value=genre}</genre>
<director>{%value=directors}</director>
<studio>{%value=studio}</studio>
<votes>{%value=Voti IMDB custom="true"}</votes>
<top250>{%value=Top 250 IMDB custom="true"}</top250>
<id>{%value=IMDB ID custom="true"}</id>
<poster>{%value=poster}</poster>
{%value=actors template="actors.tpl" maxvalues="10" params="full"}
</movie>
--- End code ---
actors.tpl
--- Code: ---%HEAD%%HEAD% <actor>
<name>{%param=name}</name>
<role>{%param=role}</role>
</actor>%FOOT%%FOOT%
--- End code ---
My questions are:
Is there any way to export the ID of IMDB and the link of photo of the actors ???
Thanks again for everything ;D
CAD:
Hi Zacca,
--- Code: ---<id>{%value=url}</id> <==== This is the url in PVD. Needs some work to limit it to only imdb No.
--- End code ---
This will insert all URL's (including IMDB) that are in PVD.
i used
--- Code: ---%OPTIONS%
replace="http://www.imdb.com/title/<->"
%OPTIONS%
--- End code ---
to limit it to just the IMDB No - strips out url part.
These might help too
http://www.videodb.info/forum_en/index.php?topic=1496.0
http://www.videodb.info/forum_en/index.php?topic=1461.msg6329#msg6329
deazo:
Thanks a lot to you Zacca for posting this!
However could you help me understand what to do with the "actors.tpl" part of your script please? Do I need to add it to the previous script or are these two separate scripts that need to be run one after the other?
Thx again.
CAD:
hi deazo,
in main body of export script have:
--- Code: ---{%value=actors template="actors.tpl" maxvalues="3" params="full"}
--- End code ---
this calls the file "actors.tpl" - maxvalues limits the no of returns. in this case the first 3 actors details. params="full". passes all information about actors (i think)
in actors.tpl file i have
--- Code: ---%HEAD%<actor>%HEAD%
<name>{%param=name}</name>
<role>{%param=role}</role>
%FOOT%</actor>%FOOT%
--- End code ---
this returns the actor name and the role they played in the film.
deazo:
Great that makes sense, thank you for the clarification!
Navigation
[0] Message Index
[#] Next page
Go to full version