Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-2954

When parsing for sublink URLs WebEPG gets confused by paranthesis in tag's attributes

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.2
    • WebEPG
    • None

    Description

      If there is some text in parenthesis anywhere in the tag being parsed for sublink URL, WebEPG will take the text withing the parenthesis and interpret is as parameters to a javascript call. It does not make a distinction of where parenthesis occur.
      For example in the following tag:
      <a title="The Simpsons (Episode 3)" href="detail.aspx?showId=128301">The Simpsons</a>
      the extracted URL is "Episode 3" instead of "detail.aspx?showId=128301".

      h4. Additional Information
      Either we there should be a way for the grabber designer to specify which attributes of the tag to search, or else only attributes that may actually be used to navigate to another page should be considered for URL extraction.

      In the following situations:
      <a onclick="refresh_banner(this);" href="details.aspx?showId=12345">
      and
      <a onclick="showDetailsPage(12345);" href="javascript:void()">

      using the first approach can always return the correct URL because the grabber designer can specify whether onclick or href should be used. The second approach is unable to determine which attribute to use.

      See: http://forum.team-mediaportal.com/webepg-136/devs-help-sublink-search-bug-missunderstanding-72611/

      Attachments

        Activity

          People

            Unassigned Unassigned
            arion_p arion_p (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: