English > Scripts and Templates

Another that exports xbmc

<< < (2/3) > >>

Zacca:
Tnx CAD for the replay of deazo   :)
and tnx for my replay  ;)

My problem is that i have 3 url... FILMUP for the italian description + Allmovie for the rate and IMDB for the rest
What can i do to delete the first 2 ???

Have u find some solutions to add the thumb on the actors ?? without the name of the image I can't do anything  :(

CAD:
hi zacca,

the only way i have found is to limit the output to 1.
imdb has to be first in the list - (you may be able to order this but i haven't tested)

create a file called urls.tpl and have this in it.

--- Code: ---{%value}

--- End code ---

in xbmc main.ptm file have:

--- Code: ---<id>{%value=url template="urls.ptm"  maxvalues="1"}</id>

--- End code ---

This will limit the no of urls returned to 1. hopefully imdb will be first and gets returned.
NB: replace="http://www.imdb.com/title/<->"  to strip leading info no longer works if you use this.

CAD:
ive had a bit of a play and also remapped some fields to get them closer to what xbmc creates.

also limits urls returned to 1. -> the first one. if you want to change this remove/change max values.

nb. this version relies on path info existing (movies have been imported from HD)
if you want to export to a fixed position change nearfiles to nearfiles="c:/<somepath/%t%.nfo"

ill see if i can figure some way to strip leading part of url from imdb url leaving just the "ttxxxxx" No.

maybe recordtemplate= option will allow to be run from called templates. (seems like %option% will only work in main template)

--- Code: ---%option%
replace="http://www.imdb.com/title/<->"
%option%

--- End code ---



[attachment deleted by admin]

Zacca:

--- Quote from: CAD on October 05, 2009, 01:17:34 am ---hi zacca,

the only way i have found is to limit the output to 1.
imdb has to be first in the list - (you may be able to order this but i haven't tested)

create a file called urls.tpl and have this in it.

--- Code: ---{%value}

--- End code ---

in xbmc main.ptm file have:

--- Code: ---<id>{%value=url template="urls.ptm"  maxvalues="1"}</id>

--- End code ---

This will limit the no of urls returned to 1. hopefully imdb will be first and gets returned.
NB: replace="http://www.imdb.com/title/<->"  to strip leading info no longer works if you use this.


--- End quote ---

{%value=url template="urls.ptm"  maxvalues="1"} don't work for me. The "URLS" don't have command "template".
anyway i have too many movie to reorder :(
I' ll wait for new version  ;D
meantime i work to export the movie flag...when i have time unfortunately  ;)

CAD:
my bad.

in main export program line should read:
<id>{%value=url template="urls.tpl" maxvalues="1"}</id>

to link to file urls.tpl which has {%value} in it

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version