[Pending] Make use of multiple categories when importing xmltv (1 Viewer)

Peter Kjellerstedt

Portal Member
January 12, 2013
7
1
51
Lund, Sweden
Home Country
Sweden Sweden
The XML data from http://xmltv.xmltv.se/ typically contains multiple <category> tags per program. Here are two examples:

Code:
  <category lang="en">Adventure/Fantasy/Animation/Comedy/Action/Family</category>
  <category lang="en">movie</category>

and:

Code:
  <category lang="en">Comedy/Fantasy</category>
  <category lang="en">series</category>

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.
 

Attachments

  • 0001-Concatenate-all-available-categories-for-a-show-with.patch
    1.1 KB

Users who are viewing this thread

Top Bottom