Project

General

Profile

XMLTV Categories not processed correctly

Added by Anonymous about 12 years ago

I currently can read xmltv.xml data in with no problem with the exception of the category/genre. Looking at the categories, they seem fairly basic -

<category lang="en">Movies</category>
<category lang="en">Other</category>
<category lang="en">Drama</category>
<category lang="en">Movie</category>
<category lang="en">Movies</category>
<category lang="en">Drama</category>
<category lang="en">Movie</category>
<category lang="en">Movies</category>
<category lang="en">Drama</category>
<category lang="en">Movie</category>
<category lang="en">Movies</category>
<category lang="en">Drama</category>
<category lang="en">Movie</category>
<category lang="en">Movies</category>
<category lang="en">Action and Adventure</category>
<category lang="en">Comedy</category>
<category lang="en">Movie</category>
<category lang="en">Movies</category>
<category lang="en">Science Fiction</category>
<category lang="en">Comedy</category>
<category lang="en">Movie</category>
<category lang="en">Movies</category>
<category lang="en">Drama</category>
<category lang="en">Movie</category>
<category lang="en">Movies</category>
<category lang="en">Suspense</category>
<category lang="en">Biography</category>
<category lang="en">Drama</category>
<category lang="en">Educational</category>

They are getting translated into the wrong genres - how can I get them matched up properly? I see in epg.c the genre list - and many of the categories are in there - but they aren't matching for some reason.

Cub


Replies (5)

RE: XMLTV Categories not processed correctly - Added by Anonymous about 12 years ago

That's interesting - so there is no solution today, based on what the ticket says? What is the plan to resolve the issue and set it up to be configurable? Perhaps it can be in a file first, which eventually can be editable by the web interface or some other method (direct editing)?

What can I do to help?

Thanks
Norm

p.s. tried pinging you on irc but I'm guessing its pretty late where you are by the time I get online.

RE: XMLTV Categories not processed correctly - Added by Adam Sutton about 12 years ago

No it wasn't late, just left my laptop at work.

The answer is that I began to modify the code to make it a bit more likely that we could add customisable mapping etc.. But I never got around to finishing it.

I cannot remember off the top of my head (or from a quick look at the code) what my plans were in respect of making it configurable. I think I wanted to have the option for a configurable set of codes internally (i.e. it wouldn't have to following the EIT list, since personally its a bit limited and most STBs use there own list, but that would cause problems for clients such as XBMC). And also a custom set of mapping rules, i.e. STRING X -> CODE Y.

Feel free to have a play around if you like. I'm happy if teh first pass is just a standard htsmsg config file (like all the other TVH files), we can bundle a default config file. The user could always edit that by hand (we could even provide a few examples). But yes eventually editing from the web UI would be the aim.

Adam

RE: XMLTV Categories not processed correctly - Added by Anonymous about 12 years ago

I took a look at the code and I lack the understanding of how the categories are being processed from the xmltv grabber. It didn't seem to even call the genres portion of the epg.c file.

Perhaps you can provide further guidance on how to move forward with this?

Norm

RE: XMLTV Categories not processed correctly - Added by Adam Sutton about 12 years ago

Hey Norm,

XMLTV code calls epg_genre_list_add_by_str (src/epg.c)

this will do a lookup into the hardcoded table.

The trick is going to be to find a decent way to store the configuration, as I think we want possibly both configurable lists of genres (not just the DVB spec'd ones) and also configurable parser/mappings from source to internal.

Adam

    (1-5/5)