Problem with sublinks in new grabber (1 Viewer)

beowulf

Portal Member
July 12, 2007
25
4
MediaPortal Version: 1.2.1
MediaPortal Skin: StreamedMP
Windows Version: Windows 7 SP1
CPU Type: AMD Athlon X2 4600+
HDD: Seagate 250Gb
Memory: 1 Gb
Motherboard: MSI K9AGM2
Video Card: ATI HD 3450
Video Card Driver: Catalyst 11.7
Sound Card: Asus Xonar
Sound Card AC3:
Sound Card Driver:
1. TV Card: Hauppage
1. TV Card Type: DVB-S
1. TV Card Driver:
2. TV Card: Hauppauge WinTV NOVA-TD
2. TV Card Type: DVB-T
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec: WinDVD
MPEG2 Audio Codec:
h.264 Video Codec: CoreAVC
Satelite/CableTV Provider:
HTPC Case: Silverstone LC17
Cooling:
Power Supply: Dell 250w
Remote: Microsoft RC6
TV: DiBoss
TV - HTPC Connection: Component

I'm trying to develop a new swedish grabber but have problems extracting end time from sublinks. It extract description from the sublinks but not the #END tag.

I've attached the grabber file and a screendump from WebEPG Designer where the template seems to be working.

No errors in the log.

Regards,
Johannes
 

Attachments

  • WebEPG.jpg
    WebEPG.jpg
    103.6 KB
  • tvplaneten_tv4_se.xml
    2.9 KB

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,645
    764
    Göteborg
    Home Country
    Sweden Sweden
    Here's some more information on this issue. The main template works normally, populating tags #GENRE, #START and #TITLE without any issues. To grab #END and #DESCRIPTION we need to open a sublink and apply a second template. The sublink loads and populates #DESCRIPTION but #END remains empty.

    Here's an example source HTML for sublink:
    Code:
      </div>
                    <p>04:45 - 05:30</p>
                </div>
                <div class="play-content-list">
    
                    <h4>Skitiga jobb</h4>
                    
                    <p>I detta avsnitt: Skull Cleaner.Programledaren Mike Rowe reser runt i Amerika och provar på olika smutsiga jobb som de flesta av oss inte hade en aning om fanns.Programledare: Mike Rowe. Amerikansk dokumentärserie från 2006. Från dagen .Originaltitel: Dirty Jobs - 27 Skull Cleaner. S01E27. </p>
                </div>
    And our grabber's template:
    Code:
    		<p><#START> - <#END></p>
    		<h4><#TITLE></h4>
    		<p><#DESCRIPTION></p>
    Which results in the following TVGuide.xml:
    Code:
      <programme start="20111006044500 +0200" channel="Kanal 9-kanal9.se">
        <title>Skitiga jobb</title>
        <desc>I detta avsnitt: Skull Cleaner.Programledaren Mike Rowe reser runt i Amerika och provar på olika smutsiga jobb som de flesta av oss inte hade en aning om fanns.Programledare: Mike Rowe. Amerikansk dokumentärserie från 2006. Från dagen .Originaltitel: Dirty Jobs - 27 Skull Cleaner. S01E27.</desc>
        <category>övrigt</category>
      </programme>
    The stop time is missing however if we change #END to something else it's working:
    Code:
    		<p><#START> - <[COLOR="Red"]#SUBTITLE[/COLOR]></p>
    		<h4><#TITLE></h4>
    		<p><#DESCRIPTION></p>
    Code:
      <programme start="20111006044500 +0200" channel="Kanal 9-kanal9.se">
        <title>Skitiga jobb</title>
        [COLOR="Red"]<sub-title>05:30</sub-title>[/COLOR]
        <desc>I detta avsnitt: Skull Cleaner.Programledaren Mike Rowe reser runt i Amerika och provar på olika smutsiga jobb som de flesta av oss inte hade en aning om fanns.Programledare: Mike Rowe. Amerikansk dokumentärserie från 2006. Från dagen .Originaltitel: Dirty Jobs - 27 Skull Cleaner. S01E27.</desc>
        <category>övrigt</category>
      </programme>

    The second issue is that search doesn't seem to apply to sublink data. For example our grabber:
    Code:
          <Searches>
            <Search match="S\d\d" field="#SEASON" remove="false" /> 
            <Search match="E\d\d" field="#EPISODE" remove="false" />  
          </Searches>
    should produce a episode-num tag in TVGuide.xml but this is also missing. If I change the search to match text in the main template, such as start time, it works as intended:
    Code:
          <Searches>
            <Search match="[COLOR="Red"]04[/COLOR]" field="#EPISODE" remove="false" />  
          </Searches>
    Code:
      <programme start="20111006[COLOR="Red"]04[/COLOR]4500 +0200" channel="Kanal 9-kanal9.se">
        <title>Skitiga jobb</title>
        <desc>I detta avsnitt: Skull Cleaner.Programledaren Mike Rowe reser runt i Amerika och provar på olika smutsiga jobb som de flesta av oss inte hade en aning om fanns.Programledare: Mike Rowe. Amerikansk dokumentärserie från 2006. Från dagen .Originaltitel: Dirty Jobs - 27 Skull Cleaner. S01E27.</desc>
        <category>övrigt</category>
        [COLOR="Red"]<episode-num>4</episode-num>[/COLOR]
      </programme>

    This could be a problem that's been in WebEPG for some time since there's another grabber which has this issue - DK\www_ahot_dk.xml. I've tried it and it doesn't set any stop time either.

    Hope this helps :D
     

    Attachments

    • tvplaneten_tv4_se.xml
      6.4 KB

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Hi vuego,

    It is curious that the END tag does not work. I will have to investigate that.

    About the sublink search issue, it has always been this way. I also had the same issue with a grabber I was building so I patched WebEPG to search sublinks as well. However I did not like the solution because there might be cases when you would not want to search sublinks (or search only sublinks or only certain templates). I never got around to do a proper implementation as at that time I could not figure out a way to pass configuration info (i.e. which templates to search) to the search handler. I have to admit that once DVB was available locally I have to admit I neglected WebEPG because it would only give me 3 days worth of EPG while DVB would give me 7.

    I will see if I can dig the old code and come up with a solution.
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom