by dalanik on Tue May 18, 2004 2:35 pm
I tried but failed.... Everything seemed OK, the XML file seemd OK, but XLobby would read up to 30% and than just stop responding. I can send you the definition file I used if you want to try. The only thing that you have to do manually is to remove all references to <img src= in resulting xml file (Ant inserts those and I didn;t find a way to remove it except manually) - that is - if you want to use cover art from ant.
just save this as a html template in your ant templates folder and go to export->html.
I guess that in Ant, there are some forbidden characters, so when it reaches them, xlobby just locksup. I didn;t have time to investigate further.
<?xml version=1.0 encoding=UTF-8?>
<database>
<sortorder>sorttitle</sortorder>
<sortable>
<sort>title</sort>
<sort>sorttitle</sort>
<sort>genre</sort>
<sort>director</sort>
<sort>year</sort>
<sort>rating</sort>
</sortable>
<template>movies</template>
<paths>
<path>D:\My Documents\BURN</path>
<path>D:\My Documents\Video</path>
</paths>
$$ITEM_BEGIN
<item>
<parameter>F:\$$ITEM_ORIGINALTITLE.avi</parameter>
<coverart>D:\Covers\$$ITEM_PICTURE</coverart>
<display>$$ITEM_ORIGINALTITLE</display>
<type>movie</type>
<offline>True</offline>
<information>
<name>$$ITEM_ORIGINALTITLE</name>
<title>$$ITEM_ORIGINALTITLE</title>
<sorttitle>$$ITEM_ORIGINALTITLE</sorttitle>
<director>$$ITEM_DIRECTOR</director>
<runtime>$$ITEM_LENGTH</runtime>
<plot>$$ITEM_DESCRIPTION</plot>
<year>$$ITEM_YEAR</year>
<genre>$$ITEM_CATEGORY</genre>
</information>
</item>
$$ITEM_END
</database>
Here is an example of output file:
<?xml version=1.0 encoding=UTF-8?>
<database>
<sortorder>sorttitle</sortorder>
<sortable>
<sort>title</sort>
<sort>sorttitle</sort>
<sort>genre</sort>
<sort>director</sort>
<sort>year</sort>
<sort>rating</sort>
</sortable>
<template>movies</template>
<paths>
<path>D:\My Documents\BURN</path>
<path>D:\My Documents\Video</path>
</paths>
<item>
<parameter>F:\One Flew Over the Cuckoo's Nest.avi</parameter>
<coverart>D:\Covers\<img src="videos_133.jpg"></coverart>
<display>One Flew Over the Cuckoo's Nest</display>
<type>movie</type>
<offline>True</offline>
<information>
<name>One Flew Over the Cuckoo's Nest</name>
<title>One Flew Over the Cuckoo's Nest</title>
<sorttitle>One Flew Over the Cuckoo's Nest</sorttitle>
<director>Milos Forman</director>
<runtime>133</runtime>
<plot>Murphy has been dating a fifteen year old (fifteen going on thirty) and is sentenced for a short term for contributing to the delinquency of a minor. Rather than spend his time in jail, he convinces the guards that he's crazy enough to need psychiatric care and is sent to a hospital. He fits in frighteningly well, and his different point of view actually begins to cause some of the patients to progress. Nurse Ratched becomes his personal cross to bear as his resistence to the hospital routine gets on her nerves.</plot>
<year>1975</year>
<genre>Drama</genre>
</information>
</item>
<item>
<parameter>F:\No Man's Land.avi</parameter>
<coverart>D:\Covers\<img src="videos_132.jpg"></coverart>
<display>No Man's Land</display>
<type>movie</type>
<offline>True</offline>
<information>
<name>No Man's Land</name>
<title>No Man's Land</title>
<sorttitle>No Man's Land</sorttitle>
<director>Danis Tanovic</director>
<runtime>90</runtime>
<plot>In 1993 during the war in Bosnia, a relief unit of Bosinian soldiers gets lost in the night fog and in the morning, inadvertantly find themselves in the direct line of Serbian forces. The unit is quickly cut down except for one soldier, ici, who was lucky enough to fall into a trench in no man's land with only a relatively minor wound. While working out his situation, a veteran Serb solider and his green partner, Nino, survey the site and prepare a landmine boobytrap under the body of ici's comrade, era. ici attacks and kills the veteran and captures Nino even though they are both in danger between the warring sides. The situation is made much worse when ici is revealed to be alive, but remain on top of the mine to prevent the death of them all. Now, this trio must find some way to escape this hopeless situation even while other factors like Sergeant Marchand of the UN Peacekeeping forces wages his own frustrating effort to rescue the trio with the help of an aggressive TV reporter. Yet the situation looks bleak while indifferent UN officers, superficial reporters and especially the deep seated mutual ethnic hatred of the trench dwellers work to undermine any chance of a sane solution in this absurd theatre of war.</plot>
<year>2001</year>
<genre>Comedy</genre>
</information>
</item>
...
so you see that <img src=" has to be deleted, and also closing ". I do this by searching for .jpg" and replace it with .jpg
D.