Hello!
I'm trying to improve grabber for russian EPG site. This site provide different details pages for films and tv-series.
Main difference what films have genre and serials does'nt. I'm trying implement condition parser using <z> tag, but can't make it work. It is ease to create two templates, and both work good, but if i add two <sublink> section, only first worked.
Any ideas?
sample links is film and series , part of xml file below
I'm trying to improve grabber for russian EPG site. This site provide different details pages for films and tv-series.
Main difference what films have genre and serials does'nt. I'm trying implement condition parser using <z> tag, but can't make it work. It is ease to create two templates, and both work good, but if i add two <sublink> section, only first worked.
Any ideas?
sample links is film and series , part of xml file below
Code:
<Listing type="Html">
<Site url="http://www.vsetv.com/schedule_channel_[ID]_day_[YYYY]-[MM]-[DD].html?dset11=0&dset12=0&dset21=0&dset22=0" post="" external="false" encoding="windows-1251" />
<Html>
<Template name="default" start="schedule_container" end="<div class="adver">">
<SectionTemplate tags="DA">
<TemplateText>
<div><#START></div>
<div>
<z(>
<a><#TITLE></a>
</div><div>
<z|>
<#TITLE>
<z)>
</div>
</TemplateText>
</SectionTemplate>
</Template>
<Template name="Details" start="<td class="main">" end="">
<SectionTemplate tags="THS">
<TemplateText>
<tr><td colspan="2" valign="top" class="showname"><h2></h2><br><br><strong><#GENRE></strong>
<span class="grey"></span></td></tr><tr><td width="700" valign="top" class="showmain"><strong></strong></span><br> <strong></strong><#ACTORS></span><br><br><div><span class="big"><#DESCRIPTION></span>
</TemplateText>
</SectionTemplate>
</Template>
<Template name="Ser" start="<td class="main">" end="">
<SectionTemplate tags="THS">
<TemplateText>
<div class="showline"></div></td></tr><tr><td width="700" valign="top" class="showmain">
<strong></strong></span><br> <strong></strong><#ACTORS></span><br><span class="big"><#DESCRIPTION></span>
</TemplateText>
</SectionTemplate>
</Template>
<Sublinks>
<Sublink search="series_" template="Ser" encoding="windows-1251" >
</Sublink>
</Sublinks>
<Sublinks>
<Sublink search="film_" template="Details" encoding="windows-1251" >
</Sublink>
</Sublinks>
<Searches>
<Search match="<div class="[a-z]*prname[0-9]*">([^<]|<img).*</div>" field="#TITLE" remove="true" />
</Searches>
</Html>
</Listing>
Ukraine