Compare commits

...

6 Commits

Author SHA1 Message Date
Kai Sommerfeld
63ef363522 Merge pull request #26 from ksooo/pvr-api-6-0-0
Implement PVR addon API v6.0.0
2019-04-24 21:05:25 +02:00
Kai Sommerfeld
c91061f84b Implement PVR addon API v6.0.0 2019-04-23 23:30:46 +02:00
Kai Sommerfeld
414e756912 build with Kodi master API 2019-04-21 17:40:25 +02:00
Kai Sommerfeld
9de3166203 build with Kodi Matrix API 2019-04-21 17:25:16 +02:00
Kai Sommerfeld
df1b033f14 Merge pull request #25 from ksooo/Leia
build with Kodi Leia API
2019-04-16 06:39:23 +02:00
ksooo
0295717be2 build with Kodi Leia API 2019-04-16 06:37:32 +02:00
8 changed files with 11 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ before_install:
#
before_script:
- cd $TRAVIS_BUILD_DIR/..
- git clone --depth=1 https://github.com/xbmc/xbmc.git
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
- mkdir -p xbmc/cmake/addons/addons/pvr.octonet
- echo "pvr.octonet https://github.com/DigitalDevices/pvr.octonet master" > xbmc/cmake/addons/addons/pvr.octonet/pvr.octonet.txt
- cd $TRAVIS_BUILD_DIR && mkdir build && cd build

2
Jenkinsfile vendored
View File

@@ -1 +1 @@
buildPlugin()
buildPlugin(version: "Matrix")

View File

@@ -20,12 +20,9 @@ $ git clone https://github.com/DigitalDevices/pvr.octonet.git
Clone the Kodi repository:
```
$ git clone https://github.com/xbmc/xbmc.git
$ git clone --branch master https://github.com/xbmc/xbmc.git
```
If you already have a local Kodi checkout, you can use that one. Just make sure it is recent enough
(Kodi 17 Beta 5 or later should work).
```
$ cd pvr.octonet
$ mkdir build

View File

@@ -29,7 +29,7 @@ artifacts:
build_script:
- cd ..
- set ROOT=%cd%
- git clone --depth=1 https://github.com/xbmc/xbmc.git
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
- mkdir xbmc\cmake\addons\addons\pvr.octonet
- echo pvr.octonet https://github.com/DigitalDevices/pvr.octonet master > xbmc\cmake\addons\addons\pvr.octonet\pvr.octonet.txt
- cd %ADDON%

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.octonet"
version="0.7.0"
version="1.0.0"
name="Digital Devices Octopus NET Client"
provider-name="digitaldevices">
<requires>@ADDON_DEPENDS@</requires>

View File

@@ -228,12 +228,12 @@ PVR_ERROR OctonetData::getChannels(ADDON_HANDLE handle, bool bRadio)
return PVR_ERROR_NO_ERROR;
}
PVR_ERROR OctonetData::getEPG(ADDON_HANDLE handle, const PVR_CHANNEL &channel, time_t start, time_t end)
PVR_ERROR OctonetData::getEPG(ADDON_HANDLE handle, int iChannelUid, time_t start, time_t end)
{
for (unsigned int i = 0; i < channels.size(); i++)
{
OctonetChannel &chan = channels.at(i);
if (channel.iUniqueId != chan.id)
if (iChannelUid != chan.id)
continue;
if(chan.epg.empty()) {

View File

@@ -69,7 +69,7 @@ class OctonetData : public P8PLATFORM::CThread
virtual PVR_ERROR getGroups(ADDON_HANDLE handle, bool bRadio);
virtual PVR_ERROR getGroupMembers(ADDON_HANDLE handle, const PVR_CHANNEL_GROUP &group);
virtual PVR_ERROR getEPG(ADDON_HANDLE handle, const PVR_CHANNEL &channel, time_t start, time_t end);
virtual PVR_ERROR getEPG(ADDON_HANDLE handle, int iChannelUid, time_t start, time_t end);
const std::string& getUrl(int id) const;
const std::string& getName(int id) const;

View File

@@ -156,9 +156,9 @@ void OnPowerSavingActivated() {}
void OnPowerSavingDeactivated() {}
/* EPG */
PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL& channel, time_t iStart, time_t iEnd)
PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, int iChannelUid, time_t iStart, time_t iEnd)
{
return data->getEPG(handle, channel, iStart, iEnd);
return data->getEPG(handle, iChannelUid, iStart, iEnd);
}
PVR_ERROR IsEPGTagRecordable(const EPG_TAG*, bool*) { return PVR_ERROR_NOT_IMPLEMENTED; }
@@ -266,9 +266,9 @@ void DemuxReset(void) {}
void DemuxAbort(void) {}
void DemuxFlush(void) {}
DemuxPacket* DemuxRead(void) { return NULL; }
void FillBuffer(bool mode) {}
/* Various helper functions */
bool IsTimeshifting(void) { return false; }
bool CanPauseStream() { return false; }
bool CanSeekStream() { return false; }