XAnt question...to the French Team

Xlobby plugin development

XAnt question...to the French Team

Postby Marbles_00 on Sat Dec 10, 2005 1:44 pm

I've been using XAnt plugin for the last little while and I like it. I also like the XAnt Movie Catalog for its simplicity. I have no problems converting the movie catalog to xml database. I noticed that one can enter the location of the video_ts.ifo in the URL window of the catalog and it will display in the parameter window of the Xlobby database editor, except it is displayed as "%""video_ts.ifo". Currently I'm manually going through and deleting the extra characters and quotations. Is there a way that the XAnt plugin can take care of this function? Also is there a way for XAnt to extract information from the catalog to indicate the movie is offline? Currently I'm going through the database and rechecking every movie that is offline which as my movie database is growing, it is becoming an increasingly daunting task.

Thanks in advance.

David
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Postby sagitaz on Sat Dec 10, 2005 1:55 pm

edit the "moviestemplate.xml" in plugin folder and change the line :

parameter>"%$$ITEM_TYPE $$ITEM_MEDIA" "$$ITEM_URL"</parameter


to

parameter>$$ITEM_URL</parameter
sagitaz
 
Posts: 114
Joined: Mon Jul 05, 2004 11:17 pm

Postby Marbles_00 on Sat Dec 10, 2005 2:04 pm

Wow, that was quick...I just had time to make my coffee. You guys are great, thanks for the reply.

David
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Re: XAnt question...to the French Team

Postby dgemily on Sat Dec 10, 2005 4:46 pm

Marbles_00 wrote: Also is there a way for XAnt to extract information from the catalog to indicate the movie is offline? Currently I'm going through the database and rechecking every movie that is offline which as my movie database is growing, it is becoming an increasingly daunting task.


use an AMC field and indicate in it True for all your offline movies.
for example use the field : "Borrower"

then add in moviestemplate.xml :
Code: Select all
<offline>$$ITEM_BORROWER</offline>

add this line as general field not in the information fields

here is my template :
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<database>
   <sortorder>sorttitle</sortorder>
   <sortable>
      <sort>actors</sort>
      <sort>title</sort>
      <sort>sorttitle</sort>
      <sort>genre</sort>
      <sort>director</sort>
      <sort>year</sort>
      <sort>rating</sort>
      <sort>name</sort>
   </sortable>
   <template/>
   <paths>
      <path/>
   </paths>
   <item>
      <parameter>$$ITEM_URL</parameter>
      <coverart>$$ITEM_PICTUREFILENAME</coverart>
      <display>$$ITEM_TRANSLATEDTITLE</display>
      <offline>$$ITEM_BORROWER</offline>
      <information>
         <name>$$ITEM_ORIGINALTITLE</name>
         <title>$$ITEM_ORIGINALTITLE</title>
         <sorttitle>$$ITEM_TRANSLATEDTITLE</sorttitle>
         <director>$$ITEM_DIRECTOR</director>
         <runtime>$$ITEM_LENGTH</runtime>
         <plot>$$ITEM_DESCRIPTION</plot>
         <actors>$$ITEM_ACTORS</actors>
         <year>$$ITEM_YEAR</year>
         <genre>$$ITEM_CATEGORY</genre>
         <rating>$$ITEM_RATING/10</rating>
         <trailerHD>$$ITEM_VIDEOFORMAT</trailerHD>
         <trailerBD>$$ITEM_AUDIOFORMAT</trailerBD>
      </information>
   </item>
</database>


later,
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby Marbles_00 on Mon Dec 12, 2005 5:28 pm

Works a charm dgemily. Thanks a bunch for the tip.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada