From 4626e0cbe44637d8e277b3a19a8f9b27b8665172 Mon Sep 17 00:00:00 2001 From: ksooo <3226626+ksooo@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:36:15 +0200 Subject: [PATCH] v22.1.0: PVR Add-on API v9.0.0 --- pvr.octonet/addon.xml.in | 2 +- pvr.octonet/changelog.txt | 3 +++ src/OctonetData.cpp | 2 +- src/OctonetData.h | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pvr.octonet/addon.xml.in b/pvr.octonet/addon.xml.in index 8e236fb..7da8bf7 100644 --- a/pvr.octonet/addon.xml.in +++ b/pvr.octonet/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.octonet/changelog.txt b/pvr.octonet/changelog.txt index 83bf8de..02e704f 100644 --- a/pvr.octonet/changelog.txt +++ b/pvr.octonet/changelog.txt @@ -1,3 +1,6 @@ +v22.1.0 +- PVR Add-on API v9.0.0 + v22.0.0 - Initial release for Piers (PVR Add-on API v8.4.0) diff --git a/src/OctonetData.cpp b/src/OctonetData.cpp index 364eb0d..b397dde 100644 --- a/src/OctonetData.cpp +++ b/src/OctonetData.cpp @@ -273,7 +273,7 @@ PVR_ERROR OctonetData::GetChannels(bool radio, kodi::addon::PVRChannelsResultSet return PVR_ERROR_NO_ERROR; } -PVR_ERROR OctonetData::GetChannelStreamProperties(const kodi::addon::PVRChannel& channelinfo, std::vector& properties) +PVR_ERROR OctonetData::GetChannelStreamProperties(const kodi::addon::PVRChannel& channelinfo, PVR_SOURCE source, std::vector& properties) { properties.emplace_back(PVR_STREAM_PROPERTY_INPUTSTREAM, "inputstream.ffmpegdirect"); properties.emplace_back("inputstream.ffmpegdirect.is_realtime_stream", "true"); diff --git a/src/OctonetData.h b/src/OctonetData.h index 338a0d2..9d55ea5 100644 --- a/src/OctonetData.h +++ b/src/OctonetData.h @@ -67,7 +67,9 @@ public: PVR_ERROR GetChannelGroups(bool radio, kodi::addon::PVRChannelGroupsResultSet& results) override; PVR_ERROR GetChannelGroupMembers(const kodi::addon::PVRChannelGroup& group, kodi::addon::PVRChannelGroupMembersResultSet& results) override; - PVR_ERROR GetChannelStreamProperties(const kodi::addon::PVRChannel& channel, std::vector& properties) override; + PVR_ERROR GetChannelStreamProperties(const kodi::addon::PVRChannel& channel, + PVR_SOURCE source, + std::vector& properties) override; PVR_ERROR GetEPGForChannel(int channelUid, time_t start,