Need help for dansih grabber (1 Viewer)

mfalk

Portal Pro
July 10, 2006
122
4
Home Country
Denmark Denmark
I'm trying to make the www_dr_dk.xml grabber work. I have converted the format so the grabber now works :)

Now my problem is the TemplateText.

The site can be seen here:
http://www.dr.dk/nav/programoversigt/w3c/inc/channel.aframe?media=TV&channel=dk1&seldate=0&seltime=0

I have tried with this template (and it is very close to work)

<table> <tr> <td><img src /></td> <td><z(><a href></z)?><#START> <#TITLE><z(></a></z)?></td>
</tr></table>
<z(><table><tr><td ></td><td><#GENRE></td></tr></table></z)?>
<z(>
<div>
<table>
<tr>
<td>
</td>
<td><#DESCRIPTION></td>
</tr>
</table>
</div>
</z)?>

As you can see there are some programs without any link for showing the descriptions and they are bothering me.

Can someone also please explain the SectionTemplate tags'? What is it exactly doing? (I cannot figure out the logic, but i have used TA)

Any help will be much appreciated.

If i only use this:
<table> <tr> <td><img src /></td> <td><z(><a href></z)?><#START> <#TITLE><z(></a></z)?></td>
</tr></table>

It also finds entries without the img tag. Why? (It does not comply to the template)
 

James

Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    Hi mfalk,

    The Tags tells the parser which tags are of interest. So "TA" means all table tags (table, tr, td, th, etc) and A href tags. It is basically the first letter of the tag name.

    So a template can have more info in it. I offen copy the whole HTML code over, but only set webepg to use some of the tags. In the example you have the IMG tags will be ignored in the template and in the page source as a parsing boundary.

    So if you have pages varible tags it is offen better to ignore them then to use the Z tags which are not so easy to control ;)

    Because this question was asked a few times in have tried to update the wiki:

    http://wiki.team-mediaportal.com/MediaPortal_Setup_Customising_WebEPG

    Let me know if this is clear now?
     

    mfalk

    Portal Pro
    July 10, 2006
    122
    4
    Home Country
    Denmark Denmark
    That helped!

    Hi James

    Thank you for updating the Wiki.

    It is a great help.

    There are still some areas which is not very clear

    - How to use subpages (I've figured it out by looking in another grabber and using the log file)
    - What can we do with actions?

    BTW are you aware that most of the grabbers in the SVN is apparently using an old XML format, and is not working?
     

    mfalk

    Portal Pro
    July 10, 2006
    122
    4
    Home Country
    Denmark Denmark
    Haven't check them all...

    ...but 3 of the AU grabbers, 2 of the BE grabbers and most likely more.

    I can if you like, make a more precise list, when i get some time :)

    br
    Michael
     

    James

    Retired Team Member
  • Premium Supporter
  • May 6, 2005
    1,385
    67
    Switzerland
    I think these grabbers have been removed. When a file is removed it stays, because the SVNs releases only add new files or changed files. So removed files stay until the next full release.
     

    Users who are viewing this thread

    Top Bottom