Skip to content

Commit

Permalink
Merge pull request #19 from ksooo/support-star-and-age-rating
Browse files Browse the repository at this point in the history
Added (actually completed) support for parental rating and star rating.
  • Loading branch information
ksooo committed Mar 29, 2015
2 parents ceb6287 + ae85984 commit 4bf1a97
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pvr.hts/addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.hts"
version="2.1.6"
version="2.1.7"
name="Tvheadend HTSP Client"
provider-name="Adam Sutton, Sam Stenvall, Lars Op den Kamp, Kai Sommerfeld">
<requires>
Expand Down
4 changes: 4 additions & 0 deletions pvr.hts/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.1.7
- added: support for radio channel groups
- added: support for star and parental rating (read only)

2.1.6
- updated to PVR API v1.9.6
- added: support for channel group sort index
Expand Down
4 changes: 2 additions & 2 deletions src/HTSPTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ struct SEvent
uint32_t content;
time_t start;
time_t stop;
uint32_t stars;
uint32_t age;
uint32_t stars; /* 1 - 5 */
uint32_t age; /* years */
time_t aired;
uint32_t season;
uint32_t episode;
Expand Down
4 changes: 2 additions & 2 deletions src/Tvheadend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ void CTvheadend::TransferEvent
epg.iGenreSubType = event.content & 0x0F;
epg.strGenreDescription = NULL; /* not supported by tvh */
epg.firstAired = event.aired;
epg.iParentalRating = 0; /* TODO: add support (seems to be only partially implemented => SEvent::age */
epg.iStarRating = 0; /* TODO: add support (seems to be only partially implemented => SEvent::stars */
epg.iParentalRating = event.age;
epg.iStarRating = event.stars;
epg.bNotify = false; /* not supported by tvh */
epg.iSeriesNumber = event.season;
epg.iEpisodeNumber = event.episode;
Expand Down

0 comments on commit 4bf1a97

Please sign in to comment.