From a77cf111bb05a21c3318c3437e09d699dbba8313 Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Fri, 7 Jul 2017 11:52:04 +0200 Subject: [PATCH] Added minimalistic support for PVR Addon API 5.3.0 --- pvr.octonet/addon.xml.in | 10 +++------- src/client.cpp | 6 ++++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pvr.octonet/addon.xml.in b/pvr.octonet/addon.xml.in index 5c9fbce..ba30073 100644 --- a/pvr.octonet/addon.xml.in +++ b/pvr.octonet/addon.xml.in @@ -1,20 +1,16 @@ @ADDON_DEPENDS@ + library_@PLATFORM@="@LIBRARY_FILENAME@"/> Kodi PVR Addon für Digital Devices Octopus NET Streams Kodi PVR Addon for Digital Devices Octopus NET Streams - all + @PLATFORM@ diff --git a/src/client.cpp b/src/client.cpp index 800a4ef..afa7699 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -116,6 +116,10 @@ PVR_ERROR GetAddonCapabilities(PVR_ADDON_CAPABILITIES *pCapabilities) pCapabilities->bSupportsRadio = true; pCapabilities->bSupportsChannelGroups = true; pCapabilities->bSupportsEPG = true; + pCapabilities->bSupportsRecordings = false; + pCapabilities->bSupportsRecordingsRename = false; + pCapabilities->bSupportsRecordingsLifetimeChange = false; + pCapabilities->bSupportsDescrambleInfo = false; return PVR_ERROR_NO_ERROR; } @@ -199,6 +203,7 @@ PVR_ERROR DeleteRecording(const PVR_RECORDING& recording) { return PVR_ERROR_NOT PVR_ERROR UndeleteRecording(const PVR_RECORDING& recording) { return PVR_ERROR_NOT_IMPLEMENTED; } PVR_ERROR DeleteAllRecordingsFromTrash() { return PVR_ERROR_NOT_IMPLEMENTED; } PVR_ERROR RenameRecording(const PVR_RECORDING& recording) { return PVR_ERROR_NOT_IMPLEMENTED; } +PVR_ERROR SetRecordingLifetime(const PVR_RECORDING*) { return PVR_ERROR_NOT_IMPLEMENTED; } PVR_ERROR SetRecordingPlayCount(const PVR_RECORDING& recording, int count) { return PVR_ERROR_NOT_IMPLEMENTED; } PVR_ERROR SetRecordingLastPlayedPosition(const PVR_RECORDING& recording, int lastplayedposition) { return PVR_ERROR_NOT_IMPLEMENTED; } int GetRecordingLastPlayedPosition(const PVR_RECORDING& recording) { return PVR_ERROR_NOT_IMPLEMENTED; } @@ -243,6 +248,7 @@ PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS& signalStatus) { const char* GetLiveStreamURL(const PVR_CHANNEL& channel) { return NULL; } PVR_ERROR GetStreamProperties(PVR_STREAM_PROPERTIES* pProperties) { return PVR_ERROR_NOT_IMPLEMENTED; } +PVR_ERROR GetDescrambleInfo(PVR_DESCRAMBLE_INFO*) { return PVR_ERROR_NOT_IMPLEMENTED; } /* Recording stream handling */ bool OpenRecordedStream(const PVR_RECORDING& recording) { return false; }