Skip to content

Commit

Permalink
Load description from xmltv file
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuehlma committed May 18, 2019
1 parent e7ebbcb commit 8d481ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pvr.zattoo/addon.xml.in
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="pvr.zattoo"
version="18.1.0"
version="18.1.1"
name="Zattoo PVR Client"
provider-name="trummerjo,rbuehlma">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
2 changes: 2 additions & 0 deletions pvr.zattoo/changelog.txt
@@ -1,3 +1,5 @@
v18.1.1
- Load description from xmltv file
v18.1.0
- Support DASH widevine streams
v18.0.68
Expand Down
12 changes: 9 additions & 3 deletions src/XmlTV.cpp
Expand Up @@ -62,6 +62,7 @@ bool XmlTV::GetEPGForChannel(const std::string &cid, unsigned int uniqueChannelI
}

XMLElement* subTitle = programme->FirstChildElement("sub-title");
XMLElement* description = programme->FirstChildElement("desc");
XMLElement* category = programme->FirstChildElement("category");
tag.startTime = StringToTime(start);
tag.endTime = StringToTime(stop);
Expand All @@ -70,9 +71,14 @@ bool XmlTV::GetEPGForChannel(const std::string &cid, unsigned int uniqueChannelI
tag.iUniqueChannelId = uniqueChannelId;
if (subTitle)
{
const char *description = subTitle->GetText();
tag.strPlotOutline = description;
tag.strPlot = description;
const char *sub = subTitle->GetText();
tag.strEpisodeName = sub;
}
if (description)
{
const char *desc = description->GetText();
tag.strPlot = desc;
tag.strPlotOutline = desc;
}
if (category)
{
Expand Down

0 comments on commit 8d481ba

Please sign in to comment.