Skip to content

Commit

Permalink
Merge pull request #7 from hudokkow/api_196
Browse files Browse the repository at this point in the history
Sync with API 1.9.6
  • Loading branch information
hudokkow committed Mar 31, 2015
2 parents ebe7e58 + 2d33a95 commit 0a0924e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pvr.pctv/addon.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.pctv"
version="0.1.6"
version="0.1.7"
name="PCTV Systems Client"
provider-name="PCTV Systems">
<requires>
<c-pluff version="0.1"/>
<import addon="xbmc.pvr" version="1.9.5"/>
<import addon="xbmc.pvr" version="1.9.6"/>
</requires>
<extension
point="xbmc.pvrclient"
Expand Down
3 changes: 3 additions & 0 deletions pvr.pctv/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.1.7
- Updated to API v1.9.6

0.1.6
- Updated to API v1.9.5

Expand Down
30 changes: 24 additions & 6 deletions src/PctvData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ void Pctv::TransferGroups(ADDON_HANDLE handle)
PVR_CHANNEL_GROUP tag;
memset(&tag, 0, sizeof(PVR_CHANNEL_GROUP));
tag.bIsRadio = false;
tag.iPosition = 0; // groups default order, unused
strncpy(tag.strGroupName, group.strGroupName.c_str(), sizeof(tag.strGroupName));

PVR->TransferChannelGroup(handle, &tag);
Expand Down Expand Up @@ -656,14 +657,31 @@ PVR_ERROR Pctv::GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL &channel
{
epg.iUniqueBroadcastId = GetEventId((long long)entry["Id"].asDouble());
}
epg.iChannelNumber = iChannelId;
epg.strTitle = entry["Title"].asCString();
epg.strPlot = entry["ShortDescription"].asCString();
epg.strPlotOutline = entry["LongDescription"].asCString();
epg.strTitle = entry["Title"].asCString();
epg.iChannelNumber = iChannelId;
epg.startTime = static_cast<time_t>(entry["StartTime"].asDouble() / 1000);
epg.endTime = static_cast<time_t>(entry["EndTime"].asDouble() / 1000);
epg.strEpisodeName = "";
epg.strIconPath = "";
epg.strPlotOutline = entry["LongDescription"].asCString();
epg.strPlot = entry["ShortDescription"].asCString();
epg.strOriginalTitle = NULL; // unused
epg.strCast = NULL; // unused
epg.strDirector = NULL; // unused
epg.strWriter = NULL; // unused
epg.iYear = 0; // unused
epg.strIMDBNumber = NULL; // unused
epg.strIconPath = ""; // unused
epg.iGenreType = 0; // unused
epg.iGenreSubType = 0; // unused
epg.strGenreDescription = "";
epg.firstAired = 0; // unused
epg.iParentalRating = 0; // unused
epg.iStarRating = 0; // unused
epg.bNotify = false;
epg.iSeriesNumber = 0; // unused
epg.iEpisodeNumber = 0; // unused
epg.iEpisodePartNumber = 0; // unused
epg.strEpisodeName = ""; // unused

PVR->TransferEpgEntry(handle, &epg);
}
}
Expand Down

0 comments on commit 0a0924e

Please sign in to comment.