Hi
I'm writing a new grabber for 20min.ch because the old one doesn't work any more. now the grabber xml look like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info language="de" availableDays="7" timezone="W. Europe Standard Time" version="2.0" />
<Channels>
<Channel id="sf1@sfdrs.ch" siteId="5" />
</Channels>
<Listing type="Html">
<Site url="http://www.20min.ch/unterhaltung/tv_guide/suche.tmpl" post="program_id=&cb-[ID]=on&dates=0-6&time=all_day&text=&cat=all&subcat=all" external="false" encoding="" />
<Html>
<Template name="default" start="</script></td></tr>" end="">
<SectionTemplate tags="T">
<TemplateText>
<td valign="top" width="10%" class="font">
<nobr><#START></nobr>
</td>
<td valign="top" width="27%" class="font">
<nobr>SF 1</nobr>
</td>
<td valign="top" width="63%" class="font"><b>
<a href="javascript:void(window.open('detail.tmpl?programid=8325319','tvguide','width=550,height=800,scrollbars=yes'));"><#TITLE></a></b>
</td>
</TemplateText>
</SectionTemplate>
</Template>
<Template name="Details" start="" end="">
<SectionTemplate tags="T">
<TemplateText>
</TemplateText>
</SectionTemplate>
</Template>
<Sublinks>
<Sublink search="detail.tmpl" template="Details">
<Link url="http://www.20min.ch/unterhaltung/tv_guide/detail.tmpl" post="programId=[1]" external="false" encoding="" />
</Sublink>
</Sublinks>
</Html>
</Listing>
</Grabber>
The detail template is not finished at the moment. At the moment I've a problem with the Sublink, in HTML code link looks like this:
Code:
javascript:void(window.open('detail.tmpl?programid=8434990','tvguide','width=550,height=800,scrollbars=yes'));
That link opens page
Code:
http://www.20min.ch/unterhaltung/tv_guide/detail.tmpl?programid=8434990
When I'm now looking into my log of webepg it shows this:
Code:
SubLink Request http://www.20min.ch/unterhaltung/tv_guide/detail.tmpl POST: programId=window.open('detail.tmpl?programid=8356772
Does I do something wrong in the xml?
Any help would be greate.