Genres/Categories Not Working?
#1
I am testing EPG.Ninja's guide data against VBox PVR Client.

The XML File has;
Code:
<date>20131011</date>
                        <category lang="en">Reality</category>
                        </programme>

When viewed in PVR IPTV Simple Client, it shows correctly. But in the VBox PVR Client, it shows as Other/Unknown

I looked at the code, and whilst I am no programmer.... it looks like it picks up categories?

Code:
// Categories. Skip "movie" and "series" since most people treat categories
  // as genres
  for (element = xml->FirstChildElement("category");
    element != NULL; element = element->NextSiblingElement("category"))
  {
    auto *category = element->GetText();
    if (!category)
      continue;

    std::string genre(category);
    if (genre == "movie" || genre == "series")
      continue;

    m_categories.push_back(genre);
  }

What is going wrong?
Reply
#2
The issue is; this m_category isn NOT what is used to show/determine Genre. In the PVR Stalker Client, it then runs these additional steps;

Code:
p.extra.genreType = EPGGenreByCategory(p.categories);
p.extra.genreDescription = StringUtils::Join(p.categories, ", ");

This does the Genre mapping, as well as creating the list of Genres (you'll often see multiple Genre names in PVR Stalker Client).
Reply

Logout Mark Read Team Forum Stats Members Help
Genres/Categories Not Working?0