Skip to content

Commit

Permalink
Add missing Epg tags
Browse files Browse the repository at this point in the history
- Add missing Epg tags 
 (OriginalTitle,Cast,Director,Writer,Year,IMDBNumber,EpisodeId,EpisodePart,EpisodeName)
  • Loading branch information
Angelinas1 committed Jun 14, 2019
1 parent f7feb0b commit e70c621
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pvr.iptvsimple/addon.xml.in
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.iptvsimple"
version="4.0.1"
version="4.0.2"
name="PVR IPTV Simple Client"
provider-name="nightik">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
4 changes: 4 additions & 0 deletions pvr.iptvsimple/changelog.txt
@@ -1,3 +1,7 @@
v4.0.2
- Add missing Epg tags
(OriginalTitle,Cast,Director,Writer,Year,IMDBNumber,EpisodeId,EpisodePart,EpisodeName)

v4.0.1
- Remove channels loaded notification

Expand Down
24 changes: 18 additions & 6 deletions src/PVRIptvData.cpp
Expand Up @@ -274,6 +274,15 @@ bool PVRIptvData::LoadEPG(time_t iStart, time_t iEnd)
entry.iGenreType = 0;
entry.iGenreSubType = 0;
entry.strPlotOutline = "";
entry.strOriginalTitle = "";
entry.strCast = "";
entry.strDirector = "";
entry.strWriter = "";
entry.iYear = 0;
entry.strIMDBNumber = "";
entry.iEpisodeId = 0;
entry.iEpisodePart = 0;
entry.strEpisodeName = "";
entry.startTime = iTmpStart;
entry.endTime = iTmpEnd;

Expand Down Expand Up @@ -749,12 +758,15 @@ PVR_ERROR PVRIptvData::GetEPGForChannel(ADDON_HANDLE handle, int iChannelUid, ti
tag.endTime = myTag->endTime + iShift;
tag.strPlotOutline = myTag->strPlotOutline.c_str();
tag.strPlot = myTag->strPlot.c_str();
tag.strOriginalTitle = NULL; /* not supported */
tag.strCast = NULL; /* not supported */
tag.strDirector = NULL; /* not supported */
tag.strWriter = NULL; /* not supported */
tag.iYear = 0; /* not supported */
tag.strIMDBNumber = NULL; /* not supported */
tag.strOriginalTitle = myTag->strOriginalTitle.c_str();
tag.strCast = myTag->strCast.c_str();
tag.strDirector = myTag->strDirector.c_str();
tag.strWriter = myTag->strWriter.c_str();
tag.iYear = myTag->iYear;
tag.strIMDBNumber = myTag->strIMDBNumber.c_str();
tag.iEpisodeId = myTag->iEpisodeId;
tag.iEpisodePart = myTag->iEpisodePart;
tag.strEpisodeName = myTag->strEpisodeName.c_str();
tag.strIconPath = myTag->strIconPath.c_str();
if (FindEpgGenre(myTag->strGenreString, iGenreType, iGenreSubType))
{
Expand Down
9 changes: 9 additions & 0 deletions src/PVRIptvData.h
Expand Up @@ -35,10 +35,19 @@ struct PVRIptvEpgEntry
int iChannelId;
int iGenreType;
int iGenreSubType;
int iYear;
int iEpisodeId;
int iEpisodePart;
time_t startTime;
time_t endTime;
std::string strTitle;
std::string strPlotOutline;
std::string strOriginalTitle;
std::string strCast;
std::string strDirector;
std::string strWriter;
std::string strIMDBNumber;
std::string strEpisodeName;
std::string strPlot;
std::string strIconPath;
std::string strGenreString;
Expand Down

0 comments on commit e70c621

Please sign in to comment.