Skip to content

Commit

Permalink
Update PVR API 6.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phunkyfish committed Mar 17, 2020
1 parent 23e9773 commit bdf656b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pvr.demo/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.demo"
version="4.1.1"
version="4.1.2"
name="PVR Demo Client"
provider-name="Pulse-Eight Ltd., Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
8 changes: 6 additions & 2 deletions src/PVRDemoData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ PVR_ERROR PVRDemoData::GetEPGForChannel(ADDON_HANDLE handle, int iChannelUid, ti
tag.iFlags = EPG_TAG_FLAG_UNDEFINED;
tag.iSeriesNumber = myTag.iSeriesNumber;
tag.iEpisodeNumber = myTag.iEpisodeNumber;;
tag.iEpisodePartNumber = EPG_TAG_INVALID_SERIES_EPISODE;
tag.strEpisodeName = myTag.strEpisodeName.c_str();
tag.strFirstAired = "";

iLastEndTimeTmp = tag.endTime;

Expand Down Expand Up @@ -321,6 +323,8 @@ PVR_ERROR PVRDemoData::GetRecordings(ADDON_HANDLE handle, bool bDeleted)
PVRDemoRecording &recording = *it;

PVR_RECORDING xbmcRecording = {};
xbmcRecording.iSeriesNumber = PVR_RECORDING_INVALID_SERIES_EPISODE;
xbmcRecording.iEpisodeNumber = PVR_RECORDING_INVALID_SERIES_EPISODE;

xbmcRecording.iDuration = recording.iDuration;
xbmcRecording.iGenreType = recording.iGenreType;
Expand Down Expand Up @@ -502,10 +506,10 @@ bool PVRDemoData::ScanXMLEpgData(const TiXmlNode* pEpgNode)
entry.strPlotOutline = strTmp;

if (!XMLUtils::GetInt(pEpgNode, "series", entry.iSeriesNumber))
entry.iSeriesNumber = 0;
entry.iSeriesNumber = EPG_TAG_INVALID_SERIES_EPISODE;

if (!XMLUtils::GetInt(pEpgNode, "episode", entry.iEpisodeNumber))
entry.iEpisodeNumber = 0;
entry.iEpisodeNumber = EPG_TAG_INVALID_SERIES_EPISODE;

if (XMLUtils::GetString(pEpgNode, "episodetitle", strTmp))
entry.strEpisodeName = strTmp;
Expand Down

0 comments on commit bdf656b

Please sign in to comment.