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
 
LinkBack Thread Tools Display Modes
Old 2007-12-14, 16:27   #1 (permalink)
MP Donator
 
Join Date: Jan 2007
Location: Stockholm
Posts: 483
Thanks: 5
Thanked 10 Times in 10 Posts

Country:

My System

Default Updated grabber for dagenstv.com in Sweden

Hello!

I realized this morning that dagenstv.com changed their web layout and the grabber no longer works.

I've made a first attempt to update it and as far as I can see it now works again.

Please let me know if you find any issues.

James: can we add this to the stream?

/Peter
Attached Files
File Type: xml www_dagenstv_com.xml (8.6 KB, 21 views)
petsa is offline   Reply With Quote
Old 2007-12-14, 22:34   #2 (permalink)
MP Donator
 
Join Date: Jan 2007
Location: Stockholm
Posts: 483
Thanks: 5
Thanked 10 Times in 10 Posts

Country:

My System

Default

Hi again,

I just realized I had not counted for some variations to the layout. Here is a new version of the grabber that picks up all shows, but not yet the descriptions...

I need to work on this or get some help from someone.

Here is the problem:

- Some shows have additional information in their section of the page. Some voting buttons...
- I've tried to use conditional statements to take this into account and filter this away
- Now I can pick-up the Title, Start, and End times for the show but not the description
- I believe this has to do with the fact that there is no Tag following the #Description
- The Tag comes after the conditional statement

Here is the template:

<div>
<div><#START>(<#END>)</div>
<div><#TITLE></div>
<div><#DESCRIPTION> <------------ No Tag here
<z(><div><div></div><div></div></div></z)?> <------------ Here is the conditional statement
</div> <------------ And here comes the closing Tag
<div></div>
</div>

I can't figure out any other way of doing this so all help is very mucb appreciated!

/Peter
Attached Files
File Type: xml www_dagenstv_com.xml (8.7 KB, 31 views)
petsa is offline   Reply With Quote
Old 2007-12-17, 08:35   #3 (permalink)
Portal User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts


Default Highly appreciated!

Hey dude, just wanted you to know that all the work you do is highly appreciated, keep em coming!
Jucky is offline   Reply With Quote
Old 2007-12-17, 08:45   #4 (permalink)
MP Donator
 
Join Date: Jan 2007
Location: Stockholm
Posts: 483
Thanks: 5
Thanked 10 Times in 10 Posts

Country:

My System

Default

Thanks
petsa is offline   Reply With Quote
Old 2007-12-21, 21:35   #5 (permalink)
MP Donator
 
vuego's Avatar
 
Join Date: Aug 2006
Age: 7
Posts: 264
Thanks: 42
Thanked 10 Times in 10 Posts

Country:

My System

Default

I've also looked into this and fail using the Z tag too.
I don't really understand why it's supposed to be <z(><td><#DESCRIPTION></td></z)?> and not <z>(<td><#DESCRIPTION></td>)?</z>.

I've come up with two different templates. One that gets all normal shows:
Code:
Start: <!-- Start
End: <div class="dm">
Tags: D

Text:
<div>
<div><#START>(<#END>)</div>
<div><#TITLE></div>
<div><#DESCRIPTION></div>

And one that gets the shows with voting buttons:
Code:
Start: <!-- Start
End: <div class="dm">
Tags: DF

Text:
<div>
<div><#START>(<#END>)</div>
<div><#TITLE></div>
<div><#DESCRIPTION><form><div>

Now to the question: How do we combine those two?
vuego is online now   Reply With Quote
Old 2007-12-21, 21:42   #6 (permalink)
MP Donator
 
Join Date: Jan 2007
Location: Stockholm
Posts: 483
Thanks: 5
Thanked 10 Times in 10 Posts

Country:

My System

Default

You got me there... I also had two different templates that I could not combine.

Actually, in the end I gave up and started to use "xmltv.exe tv_grab_se_swedb". This one works really well, and it also syncs with TVScheduler through the TV3E plugin.

With xmltv I can get both descriptions and start/end time for each show. No fancy vote buttons to take care of

/Peter
petsa is offline   Reply With Quote
Old 2007-12-25, 18:43   #7 (permalink)
MP Donator
 
vuego's Avatar
 
Join Date: Aug 2006
Age: 7
Posts: 264
Thanks: 42
Thanked 10 Times in 10 Posts

Country:

My System

Default

There's only one problem with tv_grab_se_swedb. It supports less than half the amount of channels as dagenstv.com does.

James can you confirm that a tag always needs a start and end tag like <div><#DESCRIPTION></div> and cannot have an optional end tag? Or is there a workaround?
vuego is online now   Reply With Quote
Old 2007-12-28, 07:14   #8 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,341
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Hi guys,

petsa's template was correct but there was a bug with the Z tags which was stopping it from working.

@vuego, think of the everything around the Z tag being removed and the regex command staying. So <z(> .... </z)?> becomes ( ... )?. The Z tags are needed to tell the parsing engine that these are regex commands. If you put them in without the Z tags, the parsing engine treats them as string matches. Like around the #END in this case.

I've made some corrections and both of the following should work:
Code:
<div>
<div><#START>(<#END>)</div>
<div><#TITLE></div>
<div><#DESCRIPTION>
Code:
<div>
<div><#START>(<#END>)</div>
<div><#TITLE></div>
<div><#DESCRIPTION><z(><div><z)*></div>
I would use the first.

Last edited by James; 2007-12-28 at 19:40.
James is offline   Reply With Quote
2 Users Say Thank You:
Old 2007-12-28, 19:33   #9 (permalink)
MP Donator
 
Join Date: Jan 2007
Location: Stockholm
Posts: 483
Thanks: 5
Thanked 10 Times in 10 Posts

Country:

My System

Default

Thanks James! Now it works again.

Can you please add the updated grabber file to the SVN stream?

/Peter
petsa is offline   Reply With Quote
Old 2007-12-28, 22:57   #10 (permalink)
MP Donator
 
vuego's Avatar
 
Join Date: Aug 2006
Age: 7
Posts: 264
Thanks: 42
Thanked 10 Times in 10 Posts

Country:

My System

Default

James please add this version to SVN since it also includes the new channels described in post #34 of the same thread.

BTW I think that the WebEPG Designer also needs to be updated to handle the new Z tag.

vuego is online now   Reply With Quote
Reply

Bookmarks

Tags
dagenstvcom, grabber, sweden, updated

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another updated Telvis grabber (Finland) pmcguire WebEPG 1 2007-11-04 06:39
Spanish TDT grabber updated. pegial WebEPG 1 2007-10-17 07:56
Updated Grabber for tvtoday.de milagroso WebEPG 1 2007-08-02 20:05
Updated grabber for tvtoday.de Hawkeye WebEPG 1 2007-05-15 16:53
I have updated the grabber for TVCABO (Portugal) cleao WebEPG 7 2007-05-04 10:56


All times are GMT +1. The time now is 18:24.


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