Grabber file for Lithuania (1 Viewer)

Sasler

Portal Pro
October 19, 2006
72
0
(Not that anyone needs it... I certanly don't watch these channels! Then again my Lithuanian is really bad and some natives might find it usefull.)

EDIT 15/03/2007:

I found out that the site I was using wasn't that reliable, so I did new grabber files (with corrected channel IDs) for the actual channel web sites. I haven't sone them all yet, but I'm working on it. Anyway here are the codes:

LTV and LTV2 (www_lrt_lt):
Code:
<?xml version="1.0" encoding="utf-8" ?>
<Grabber>
  <Info language="lt" availableDays="7" timezone="E. Europe Standard Time" />
  <Channels>
  	<Channel id="ltv@lrt.lt" siteId="1352" />
  	<Channel id="ltv2@lrt.lt" siteId="217179" />
  </Channels>
  <Listing type="Html">
    <Site url="http://www.lrt.lt/schedule.php?c=[ID]&amp;d=[YYYY]-[MM]-[DD]" post="" external="false" encoding="" />
    <Html>
      <Template name="default" start="tvr_filter">
        <SectionTemplate tags="TF">
          <TemplateText>
            &lt;tr&gt;&lt;td&gt;&lt;#START&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;			
			&lt;td&gt;&lt;font&gt;&lt;#TITLE&gt;&lt;/font&gt;
			&lt;font&gt;&lt;#DESCRIPTION&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
          </TemplateText>
        </SectionTemplate>
      </Template>
    </Html>
  </Listing>
</Grabber>

TV3 (www_tv3_lt):
Code:
<?xml version="1.0" encoding="utf-8" ?>
<Grabber>
  <Info language="lt" availableDays="7" timezone="E. Europe Standard Time" />
  <Channels>
  	<Channel id="tv3.lt" siteId="tv3" />
  </Channels>
  <Listing type="Html">
    <Site url="http://www.tv3.lt/index.php?option=com_press&amp;channel=[ID]&amp;date=[YYYY]-[MM]-[DD]" post="" external="false" encoding="" />
    <Html>
      <Template name="default">
        <SectionTemplate tags="T">
          <TemplateText>
            &lt;tr&gt;&lt;td&gt;&lt;#START&gt;&lt;/td&gt;&lt;td&gt;&lt;
            a href&gt;&lt;#TITLE&gt;&lt;/a&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;          
          </TemplateText>
        </SectionTemplate>
      </Template>
       <Template name="Details" start="contentpaneopenfoot">
        <SectionTemplate tags="HS">
          <TemplateText>
            &lt;span&gt;&lt;&lt;h2&gt;&lt;#TITLE&gt;&lt;/h2&gt;&lt;#DESCRIPTION&gt;&lt;/span&gt;       
          </TemplateText>
        </SectionTemplate>
      </Template>
      <Sublinks>
      	<Sublink search="com_content" template="Details" />
      </Sublinks>
    </Html>
  </Listing>
</Grabber>

LNK (www_lnk_lt):
Code:
<?xml version="1.0" encoding="utf-8" ?>
<Grabber>
  <Info language="lt" availableDays="7" timezone="E. Europe Standard Time" />
  <Channels>
  	<Channel id="lnk.lt" siteId="" />
  </Channels>
  <Listing type="Html">
    <Site url="http://www.lnk.lt/programa/index.php?d=[WEEKDAY]" post="" external="false" encoding="" />
    <Search language="lt-LT" />
    <Html>
      <Template name="default">
        <SectionTemplate tags="TF">
          <TemplateText>
            &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;#START&gt;&lt;/td&gt;
			&lt;td&gt;&lt;font&gt;&lt;#TITLE&gt;&lt;/font&gt;
			&lt;z(&gt;&lt;#DESCRIPTION&gt;
			&lt;z(&gt;&lt;font&gt;&lt;/font&gt;&lt;/z)?&gt;
			&lt;font&gt;&lt;#GENRE&gt;&lt;/font&gt;&lt;/z)?&gt;
			&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;         
          </TemplateText>
        </SectionTemplate>
      </Template>      
    </Html>
  </Listing>
  <Actions>
    <Modify channel="*" field="#GENRE" search="&lt;/td&gt;" action="Replace">-</Modify>
  </Actions>
</Grabber>

BTV (www_btv_lt): (Note with this one I'm having some minor problems. I'll write more about it later.)
Code:
<?xml version="1.0" encoding="utf-8" ?>
<Grabber>
  <Info language="lt" availableDays="7" timezone="E. Europe Standard Time" />
  <Channels>
  	<Channel id="btv.lt" siteId="" />
  </Channels>
  <Listing type="Html">
    <Site url="http://www.btv.lt/index.php/pageid/81/date/[YYYY]-[MM]-[DD]" post="" external="false" encoding="" />
    <Html>
      <Template name="default" start="&lt;table cellspacing=&quot;1&quot; cellpadding=&quot;5&quot; width=&quot;100%&quot; border=&quot;0&quot; bgcolor=&quot;#ffffff&quot;&gt;" end="&lt;/table&gt;">
        <SectionTemplate tags="T">
          <TemplateText>
            &lt;tr&gt;&lt;td&gt;&lt;#START&gt;&lt;/td&gt;
			&lt;td&gt;&lt;a href&gt;&lt;#TITLE&gt;&lt;/a&gt;&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;  
          </TemplateText>
        </SectionTemplate>
      </Template>
      <Template name="Details" start="weekday">
        <SectionTemplate tags="DP">
          <TemplateText>
            &lt;div&gt;&lt;p&gt;&lt;#SUBTITLE&gt;&lt;/p&gt;
			&lt;z(&gt;&lt;p&gt;&lt;#GENRE&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/z)?&gt;
			&lt;p&gt;&lt;#DESCIPTION&gt;&lt;/p&gt;
			&lt;p&gt;&lt;/p&gt;&lt;/div&gt;	  
          </TemplateText>
       </SectionTemplate>
      </Template>
      <Sublinks>
      	<Sublink search="programid" template="Details" />      	
      </Sublinks>     
    </Html>
  </Listing>
</Grabber>

And more coming later...
 

Sasler

Portal Pro
October 19, 2006
72
0
I'm having a some problem with the following code for BTV:

Code:
  <?xml version="1.0" encoding="utf-8" ?> 
- <Grabber>
  <Info language="lt" availableDays="7" timezone="E. Europe Standard Time" /> 
- <Channels>
  <Channel id="btv.lt" siteId="" /> 
  </Channels>
- <Listing type="Html">
  <Site url="http://www.btv.lt/index.php/pageid/81/date/[YYYY]-[MM]-[DD]" post="" external="false" encoding="" /> 
- <Html>
- <Template name="default" start="<table cellspacing="1" cellpadding="5" width="100%" border="0" bgcolor="#ffffff">" end="</table>">
- <SectionTemplate tags="T">
  <TemplateText><tr><td><#START></td> <td><a href><#TITLE></a></td> <td></td></tr></TemplateText> 
  </SectionTemplate>
  </Template>
- <Template name="Details" start="weekday">
- <SectionTemplate tags="DP">
  <TemplateText><div><p><#SUBTITLE></p> <z(><p><#GENRE></p><p></p></z)?> <p><#DESCIPTION></p> <p></p></div></TemplateText> 
  </SectionTemplate>
  </Template>
- <Sublinks>
  <Sublink search="programid" template="Details" /> 
  </Sublinks>
  </Html>
  </Listing>
  </Grabber>

This web site has slightly different versions of details sublink page depending on the show. That is why I use the <z> tag in the template:

Code:
<div><p><#SUBTITLE></p> <z(><p><#GENRE></p><p></p></z)?> <p><#DESCIPTION></p> <p></p></div>

This works fine in WebEPG Designer, but when running the grabber in WebEPG (not Designer) it will fill the #GENRE (<category> in TVGuide.xml) and leave the #DESCIPTION (<desc> in TVGuide.xml) empty.

For example, the WebEPG Designer shows for the details:

#SUBTITLE „ŠALIA KELIO...“
#GENRE Humoro laida
#DESCIPTION Mažame Lietuvos provi...

But the TVGuide.xml has only the following entry:
Code:
<programme start="20070315173000" channel="btv.lt" clumpidx="0/1">
  <title>ŠALIA KELIO... Humoro laida</title> 
  <sub-title>„Šalia Kelio...“</sub-title> 
  <category>Humoro laida</category> 
  </programme>

I tryed to use different template for different sublink (there are 3 - I think - wiht the id of "82", "83" and "88"), but that I couldnt get to work at all. This is what I tryed:
Code:
<Sublinks>
      	<Sublink search="83" template="Details83" />
	<Sublink search="88" template="Details88" />
</Sublinks>

This would have been the easyest approach, but it doesn't load any sublinks whe I try this. Any ideas what I'm doing wrong?
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    If Designer is doing something different to a new SVN. It is most likely that designer is out of date. I'll check this and update the designer files. Until then you can copy all the dlls over to the designer directory and it will use the changed code.
     

    apuokas

    Portal Member
    February 1, 2011
    28
    4
    48
    Home Country
    AW: Grabber file for Lithuania

    in link below you heve german, russian and lithuanian xmltv files for download (refreshing every veak). There is a short description about xmltv, about download atomatisation etc. - in lithuanian.

    link:
    http://luinys.org/downloads/pc/multimedia/epg/xmltv_epg_mp.htm

    i have problem by building graber for Pagrindinis | TV24.LT . As result i becomme programms for a first day from 06:00 till 12:00 and further i becomme second day from 06:00 till 12:00.... And so four times. Then there is program for first day from 12:00, second day from 12:00 and so for thimes... and etc.

    there i have a xmltv file: http://luinys.org/downloads/pc/multimedia/epg/LT_epg.xml
    the problem is that i cant see some of lithuanian letters (ą, ę, ė, į, ų,) in mediaportal program guide. My mediaportal is 1.1.3 german, on win 7 ultimate german,
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom