MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Electronic Program Guide » WebEPG


WebEPG everything related to WebEPG in here

Reply
 
Thread Tools Display Modes
Old 2008-05-06, 23:50   #1 (permalink)
Portal Member
 
Join Date: Apr 2008
Location: California
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post

Country:

My System

Default WebEPG Template help

Need some template help.
I use the A tag to select HTML source.
Below is an example of one program that the parser finds.

<a style="overflow: visible;"
href="http://television.aol.com/show/ktvu-channel-2-news-at-noon/79408/main"
title="KTVU Channel 2 News at Noon"
onclick="load_episode_details('','2','KTVU','79408 ','79408','10760','200805061900','200805061930'); return false">
KTVU Channel 2 News at Noon</a>

Bold text shows my 3 fields
'200805061900' <#STARTXMLTV>
'200805061930' <#ENDXMLTV>
KTVU Channel 2 News at Noon <#TITLE>
The <#TITLE> works fine in WebEPG designer.
However I don't know how to parse the <#STARTXMLTV> and <#ENDXMLTV>.
Is it possible and how?
moab is offline   Reply With Quote
Old 2008-05-07, 21:42   #2 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Quote:
Originally Posted by moab View Post
Need some template help.
I use the A tag to select HTML source.
Below is an example of one program that the parser finds.

<a style="overflow: visible;"
href="http://television.aol.com/show/ktvu-channel-2-news-at-noon/79408/main"
title="KTVU Channel 2 News at Noon"
onclick="load_episode_details('','2','KTVU','79408 ','79408','10760','200805061900','200805061930'); return false">
KTVU Channel 2 News at Noon</a>

Bold text shows my 3 fields
'200805061900' <#STARTXMLTV>
'200805061930' <#ENDXMLTV>
KTVU Channel 2 News at Noon <#TITLE>
The <#TITLE> works fine in WebEPG designer.
However I don't know how to parse the <#STARTXMLTV> and <#ENDXMLTV>.
Is it possible and how?
The problem is trying to find something to key on to before the item you want to parse.

Here the time it it hard to get the time fields alone, because the characters in front of the are not unique. So you will need to parse some of the other fields too:

I think this should work:

Code:
 <a <#X1:','>','<#X2>','<#X3>','<#X4>','<#X5>','<#STARTXMLTV>','<#ENDXMLTV:,'>><#TITLE></a>
The X tags should be discarded (unless there is some useful data here?).

I found a few bugs. Try the attached utils.dll.
Attached Files
File Type: zip Utils.zip (34.9 KB, 4 views)

Last edited by James; 2008-05-08 at 06:27.
James is offline   Reply With Quote
Old 2008-05-08, 00:43   #3 (permalink)
Portal Member
 
Join Date: Apr 2008
Location: California
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post

Country:

My System

Default attachment

Thanks for the help and the file. I got the WebEPG Designer working great.

Now comes the hard part of building the grabber and adding the channels.

Last edited by moab; 2008-05-08 at 06:42.
moab is offline   Reply With Quote
Reply

Bookmarks

Tags
template, webepg

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebEPG: WebEPG Dies when channels have blank mapping jadz 0.2.3.0 RC1 and SVN Builds 0 2007-08-11 03:23
Help needed to change a template pierremenard WebEPG 6 2007-06-14 14:12
WebEPG.exe aus Mediaportal starten? Aktualisierung WebEPG anon Media Portal - Support 2 2006-02-19 19:50
Want to use MP as Template davey General Development (no feature request here!) 3 2005-11-17 18:00


All times are GMT +1. The time now is 08:25.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden