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

[pvr] Update to PVR API 4.1 #26

Merged
merged 1 commit into from
Sep 20, 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.wmc/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.wmc"
version="0.6.7"
version="0.6.8"
name="PVR WMC Client"
provider-name="KrustyReturns and scarecrow420">
<requires>
<c-pluff version="0.1"/>
<import addon="xbmc.pvr" version="4.0.0"/>
<import addon="xbmc.pvr" version="4.1.0"/>
<import addon="xbmc.gui" version="5.8.0"/>
</requires>
<extension
Expand Down
17 changes: 11 additions & 6 deletions pvr.wmc/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v0.6.8
- Updated to PVR API v4.1.0
- Populate IsSeries field on EPG Items
- Flag Repeating Guide Based TimerType as requiring a Series EPG item

v0.6.7
- Updated to PVR API v4.0.0

Expand Down Expand Up @@ -120,7 +125,7 @@ v0.6.0
- better updating of ‘Recordings’ list for all client platforms
- can receive gui update triggers from server when checking server status
- AddTimer notifications are now info/warning rather than errors
- Add workaround to get XBMC skip/seek to behave nicely for Active and Remuxed recordings
- Add workaround to get XBMC skip/seek to behave nicely for Active and Remuxed recordings

0.2.93
- Implements channel groups
Expand All @@ -131,11 +136,11 @@ v0.6.0
- Supports resume across multiple clients (gotham only)
- Receives and parses server version
- Signal status can be scanned (note requires enabling in pvr.wmc addon configuration – gotham clients only

0.2.91
- Changed some message strings, added message for instant record
- Gotham only: updated pvr interface to xbmc 1.9.0, to work with newest gotham builds

0.2.9
- Fixed skin folder name so xml files no longer need to be placed in xbmc install folder (confluence only)
- Gotham only: fixed custom dialogs
Expand All @@ -146,13 +151,13 @@ v0.6.0
- Client now posts stream open errors to server
- Increase wait interval for streamfile size check
- Credential password hidden from log
0.1.8

0.1.8
- Fixed bug that could make client give up on live streams intermittently
- Stopped freezing/crashing when live-tv tuner is stolen for a recording
- Now knows whether a stream is actively growing
- Build number reported to server app

0.1.7
- made StreamSize server queries happen less often
- fixed ‘vector’ class connection crashes when socket is not available
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@

inline CStdString PVRWMC_GetClientVersion()
{
return "0.6.7"; // ALSO CHANGE IN REV NUMBER in 'pvr.wmc/addon.xml.in'
return "0.6.8"; // ALSO CHANGE IN REV NUMBER in 'pvr.wmc/addon.xml.in'
}
10 changes: 10 additions & 0 deletions src/pvr2wmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ PVR_ERROR Pvr2Wmc::GetTimerTypes ( PVR_TIMER_TYPE types[], int *size )

static const unsigned int TIMER_REPEATING_EPG_ATTRIBS
= PVR_TIMER_TYPE_IS_REPEATING |
PVR_TIMER_TYPE_REQUIRES_EPG_SERIES_ON_CREATE |
PVR_TIMER_TYPE_SUPPORTS_START_ANYTIME |
PVR_TIMER_TYPE_SUPPORTS_WEEKDAYS |
PVR_TIMER_TYPE_SUPPORTS_RECORD_ONLY_NEW_EPISODES |
Expand Down Expand Up @@ -799,6 +800,15 @@ PVR_ERROR Pvr2Wmc::GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL &chan
xEpg.strIMDBNumber = v[24].c_str();
}

// Kodi PVR API 4.1.0 adds new EPG iFlags field
if (v.size() >= 26)
{
if (Str2Bool(v[25].c_str()))
{
xEpg.iFlags |= EPG_TAG_FLAG_IS_SERIES;
}
}

PVR->TransferEpgEntry(handle, &xEpg);

}
Expand Down