| |||||||
| WebEPG everything related to WebEPG in here |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| I'm trying to do Lithuanian channels with WebEPG, but I can't get it to work here is myu simple code: <?xml version="1.0" encoding="utf-8" ?> - <Grabber> <Info language="lt" availableDays="1" timezone="E. Europe Standard Time" /> - <Channels> <Channel id="TV3@tv.lt" siteId="29" /> </Channels> - <Listing type="Html"> <Site url="http://www.tv.lt/program.asp?channel=[ID]&date=[YYYY].[MM].[DD]" post="" external="false" encoding="" /> - <Html> - <Template name="default" start="channel_day" end="</TABLE>"> - <SectionTemplate tags="T"> <TemplateText><TR><TD align="right" valign="top">#START</TD> <TD></TD><TD>#TITLE</TD></TR></TemplateText> </SectionTemplate> </Template> </Html> </Listing> </Grabber> This is the result I get: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE tv (View Source for full doctype...)> - <tv generator-info-name="WebEPG"> - <channel id="TV3@tv.lt"> <display-name>TV3</display-name> </channel> </tv> Any ideas what i'm doing wrong? Last edited by Sasler; 2007-03-06 at 15:34. |
| | |
| | #2 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts
| Hi Sasler, You need to put '<' and '>' around the #START and #TITLE tags. If you are not already using it I would suggest using the WebEPG-Designer which you can download from the wiki here: http://wiki.team-mediaportal.com/Med...omising_WebEPG (at the bottom under testing). Cheers, /James |
| | |
| | #3 (permalink) | |
| Portal Member Join Date: Oct 2006
Posts: 71
Thanks: 1
Thanked 0 Times in 0 Posts
| Quote:
now it works!Here is an other problem: <?xml version="1.0" encoding="utf-8" ?> - <Grabber> <Info language="lt" availableDays="4" timezone="E. Europe Standard Time" /> - <Channels> <Channel id="TV3@delfi.lt" siteId="11" /> </Channels> - <Listing type="Html"> <Site url="http://whatson.delfi.lt/events/tv/program.php?id=[ID]&date=[YYYY]-[MM]-[DD]" post="" external="false" encoding="" /> - <Html> - <Template name="default" start="<td valign="top" colspan="3"><font class="whatsonTVProgramTitle">" end="</font></td>"> - <SectionTemplate tags="B"> <TemplateText><b><#START></b> </b> <#TITLE> <br /></TemplateText> </SectionTemplate> </Template> </Html> </Listing> </Grabber> As you can see this site uses <b> as the only means to find the info. Is there any way to use this site? As above it does not work. And yes, I've downloaded the WebEPG-Designer, but I don't know how to use it... a bit too complicated for me . A help file would be nice.Last edited by Sasler; 2007-03-07 at 08:14. | |
| | |
| | #5 (permalink) | ||
| Portal Member Join Date: Jan 2005 Location: Halle - Germany Age: 30
Posts: 269
Thanks: 17
Thanked 4 Times in 4 Posts
Country: | Quote:
Quote:
1. Copy paste the url of your page to the GET field (if the page works with POST, enter the parameters in this field) 2. Click on load - source code is imported 3. Enter the template (e.g. copy paste the source of one show and replace title and so on by the variables) 4. Enter tags to be searched in (and maybe a start and end mark for the source code search) 5. Click on parse to test the template 6. Change template if it doesn't work... Last edited by Hawkeye; 2007-06-29 at 12:56. | ||
| | |
| | #6 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts
| I'm always happy when I see people help each other in the forum I also means I have to do less work ![]() I tried to make the tool very simple to use, but Hawkeye's has now provided some nice instructions. Only one small change. The Start and End boxes in the html source section needed to be filled in before loading the source. I know this not the way the screen layout is designed, but generally the start/end filter option is not needed so much. I'm sure I made a post about the designer tool and asked for comments and I don't think I got any. So I assumed all was well. |
| | |
| | #7 (permalink) | ||
| Portal Member Join Date: Jan 2005 Location: Halle - Germany Age: 30
Posts: 269
Thanks: 17
Thanked 4 Times in 4 Posts
Country: | Quote:
didn't know that...Quote:
![]() | ||
| | |
| | #8 (permalink) |
| Portal Developer Join Date: May 2005 Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts
| Hi Sasler, I jsut had a look at this site and I cannot get it to work , because there it no closing tag behind the title. Currently WebEPG does not view <br>'s as tag for template matching they are converted into new line characters. This limitation prevents it getting the title, so that only the time is parsed.I will look into a way I can improve the pasing engine to handle this case. I have just had a good idea for some improvements. However, this will take a while and no promises. |
| | |
![]() |
| Bookmarks |
| Tags |
| grabber, webepg |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WebEPG grabber for Oztivo | sockman | WebEPG | 17 | 2007-03-08 11:03 |
| How to make a new grabber for WebEPG | Boogol | WebEPG | 9 | 2006-07-30 07:31 |
| Need help writing a WebEPG grabber | RubaDuck7 | WebEPG | 2 | 2006-06-21 00:16 |
| .se WebEPG grabber | SweMart | The old Bugreport Forum | 12 | 2006-06-19 01:05 |
| WEBEPG: Italian grabber | homerlivorno | WebEPG | 3 | 2005-10-13 10:15 |