XAnt Help: Offline vs. Online and $$ITEM variable list

Help each other out

XAnt Help: Offline vs. Online and $$ITEM variable list

Postby WannaTheater on Thu Mar 15, 2007 5:38 pm

Hi,

I have a large ANT database of movies. Many are online, and many are offline. When XLobby builds the database, I would like for it to automatically populate the "Offline Item" if necessary. Is there an easy way (prebuilt-variable) to do this with?

Also, does anyone have a full list of the Ant fields that can be pulled into an xlobby database through the Xant moviestemplate? (i.e. all of the $$ITEM_blah variables?

I tried to insert the line
<offline>$$ITEM_MEDIATYPE</offline> into moviestemplate, as I have set the variable "Media Type" in ANT to 'True' or 'False' depending on if movie is online or not. Unfortunately, when the plugin processes this line, it substitutes what is in the field $$ITEM_MEDIA, then adds on the word TYPE.

Thanks!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Postby C-moi on Thu Mar 15, 2007 6:53 pm

If you read the file English.chm (Languages folder) Line : Export
to another format / Export to html you find at the bottom :

Here is a list of all the available tags:

$$DATE = Current date
$$TIME = Current time
Catalog file properties:

$$FILENAME = Catalog file name
$$FILEPATH = Catalog file name with full path
$$TOTALMOVIES = Number of movies in the catalog
$$OWNER_NAME = Name specified in catalog properties
$$OWNER_MAIL = E-mail
$$OWNER_SITE = Website
$$DESCRIPTION = Description
$$ITEM_FILEINDIV = Filename of individual page for current movie
$$ITEM_BEGIN = Begin of movie list
$$ITEM_END = End of movie list
Movie fields:

$$ITEM_NUMBER = Number
$$ITEM_CHECKED = State of the checkbox
$$ITEM_MEDIA = Media label/barcode
$$ITEM_TYPE = Media type
$$ITEM_SOURCE = Source
$$ITEM_DATEADD = Date added
$$ITEM_BORROWER = Current borrower
$$ITEM_RATING = Rating (0 to 10)
$$ITEM_APPRECIATION = Appreciation, from 0 to 4 stars, using files appr*.gif
$$ITEM_ORIGINALTITLE = Original title
$$ITEM_TRANSLATEDTITLE = Translated title
$$ITEM_FORMATTEDTITLE = Formatted title, as defined in the Preferences
$$ITEM_DIRECTOR = Director
$$ITEM_PRODUCER = Producer
$$ITEM_COUNTRY = Country
$$ITEM_CATEGORY = Category
$$ITEM_YEAR = Year
$$ITEM_LENGTH = Length in minutes
$$ITEM_ACTORS = Actors list
$$ITEM_URL = Website address (without link)
$$ITEM_DESCRIPTION = Description
$$ITEM_COMMENTS = Comments
$$ITEM_VIDEOFORMAT = Video format/codec
$$ITEM_VIDEOBITRATE = Video bitrate
$$ITEM_AUDIOFORMAT = Audio format/codec
$$ITEM_AUDIOBITRATE = Audio bitrate
$$ITEM_RESOLUTION = Video resolution
$$ITEM_FRAMERATE = Video framerate
$$ITEM_LANGUAGES = Languages
$$ITEM_SUBTITLES = Subtitles
$$ITEM_SIZE = Files sizes
$$ITEM_DISKS = Number of disks or tapes
$$ITEM_PICTURE = Picture, embedded in a <img> tag
$$ITEM_PICTUREFILENAME = Filename of the picture
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Postby WannaTheater on Thu Mar 15, 2007 7:15 pm

Thank you Thank You!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Postby Marbles_00 on Thu Mar 15, 2007 7:24 pm

To do offline flags...view this post:
http://www.xlobby.com/forum/viewtopic.p ... ht=offline
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Postby WannaTheater on Thu Mar 15, 2007 7:40 pm

Thanks Marbles. That is exactly what I did... I just didn't know the variable names for the fields in ANT

-Greg
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida