Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to PVR addon API v4.0.0 #29

Merged
merged 1 commit into from
Sep 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pvr.filmon/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.filmon"
version="0.6.4"
version="0.6.5"
name="PVR Filmon Client"
provider-name="Stephen Denham">
<requires>
<c-pluff version="0.1"/>
<import addon="xbmc.pvr" version="3.0.0"/>
<import addon="xbmc.pvr" version="4.0.0"/>
</requires>
<extension
point="xbmc.pvrclient"
Expand Down
3 changes: 3 additions & 0 deletions pvr.filmon/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.6.5
Updated to PVR API v4.0.0

0.6.4
Updated to PVR API v3.0.0 (API 1.9.7 compatibility mode)

Expand Down
2 changes: 1 addition & 1 deletion src/FilmonAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void setTimerDefaults(FILMON_TIMER *t) {
t->bIsRepeating = false;
t->firstDay = 0;
t->iWeekdays = 0;
t->iEpgUid = 0;
t->iEpgUid = PVR_TIMER_NO_EPG_UID;
t->iGenreType = 0;
t->iGenreSubType = 0;
t->iMarginStart = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/FilmonAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ typedef struct {
bool bIsRepeating;
time_t firstDay;
int iWeekdays;
int iEpgUid;
unsigned int iEpgUid;
int iGenreType;
int iGenreSubType;
int iMarginStart;
Expand Down
3 changes: 1 addition & 2 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,10 @@ PVR_ERROR AddTimer(const PVR_TIMER &timer) {
return m_data->AddTimer(timer);
}

PVR_ERROR DeleteTimer(const PVR_TIMER &timer, bool bForceDelete, bool /*bDeleteScheduled*/) {
PVR_ERROR DeleteTimer(const PVR_TIMER &timer, bool bForceDelete) {
if (!m_data)
return PVR_ERROR_SERVER_ERROR;

/* TODO: Change implementation to support bDeleteScheduled (introduced with PVR API 1.9.7 */
return m_data->DeleteTimer(timer, bForceDelete);

}
Expand Down