Help on Sublink search (1 Viewer)

wolfi_b

MP Donator
  • Premium Supporter
  • April 10, 2008
    799
    38
    Home Country
    Austria Austria
    Hi,

    i want to extend my grabber for tvtv.at with information provided in a sublink but i have problems with that.

    From this site i grab the information from (example)
    Code:
    http://www.tvtv.at/tvtv/index.vm?groupid=6&dayId=1&weekId=0&chnl=4119&lang=de&epgView=list

    This is an example of the sublink:
    Code:
    <a href="web/programdetails.vm?programmeId=38859762&lang=de&epgView=list&groupid=0&tref=Program" onclick="popup(this.href); return false;">

    And my parser Code:
    Code:
    <Sublink search="programdetails" template="details">
    </Sublink>

    tv.log:
    Code:
    WebEPG: Guide, Program Info: 20100418201500 - Nature's Keepers
    WebEPG: SubLink Request [B]http://www.tvtv.at/tvtv/this.href[/B] POST:
    HTMLPage: GetInternal encoding: UTF-8
    WebEPG: Getting sublinked data sucessful

    As you can see WebEPG is extracting the wrong link but why is it grabbing the this.href part? Is it a WebEPG bug?

    best regards
    Wolfgang
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    No, this is actually a feature to allow parsing sublinks that use javascript instead of simple URLs.
    In you case thought the javascript part is unusable.
     

    wolfi_b

    MP Donator
  • Premium Supporter
  • April 10, 2008
    799
    38
    Home Country
    Austria Austria
    AW: Help on Sublink search

    Hi arion_p, thanks for your reply!
    What do you mean, is WebEPG not able to grab the URL or is it my fault?
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    The sublink contains an href and a javascript call (inside onclick). WebEPG prefers the javascript call. It is not your fault but I can see no workaround.
     

    wolfi_b

    MP Donator
  • Premium Supporter
  • April 10, 2008
    799
    38
    Home Country
    Austria Austria
    AW: Help on Sublink search

    That's a pity, thank you anyway.
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom