[Pending] - Make use of multiple categories when importing xmltv

Discussion in 'Submit: code patches (MediaPortal/TV-Server/etc.)' started by Peter Kjellerstedt, June 4, 2016.

Tags:
  1. Peter Kjellerstedt

    Peter Kjellerstedt Portal Member

    Joined:
    January 12, 2013
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    Location:
    Lund, Sweden
    Ratings:
    +1 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    The XML data from http://xmltv.xmltv.se/ typically contains multiple <category> tags per program. Here are two examples:

    Code (Text):
    1.  
    2.   <category lang="en">Adventure/Fantasy/Animation/Comedy/Action/Family</category>
    3.   <category lang="en">movie</category>
    4.  
    and:

    Code (Text):
    1.  
    2.   <category lang="en">Comedy/Fantasy</category>
    3.   <category lang="en">series</category>
    4.  
    The first tag makes it possible to categorize the program based on its contents, but as can be seen from the above examples, to be able to determine whether the program is a movie or a series, the second tag is needed as well. Currently, MediaPortal only cares about the first <category> tag it finds for a program. The attached patch makes it concatenate all <category> tags using slashes, thereby making it possible to do categorization based on all available information.


     

    Attached Files:

    • Agree Agree x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!