Compare commits

..

8 Commits

Author SHA1 Message Date
Kai Sommerfeld
e35cc37347 Merge pull request #32 from AlwinEsch/Leia-change
[Leia] update CMakeLists.txt to 3.5 and change include way
2019-09-23 12:21:00 +02:00
Alwin Esch
b158b602a5 increase version to 0.7.1 2019-08-25 22:14:56 +02:00
Alwin Esch
683064d517 change header include to start with "kodi/"
This needed for reworked header checks by Kodi's addon build system.
2019-08-25 22:14:49 +02:00
Alwin Esch
1431f694e1 update .travis.yml 2019-08-25 22:14:40 +02:00
Alwin Esch
cfe1f157a1 update CMakeLists.txt to 3.5 2019-08-25 22:00:16 +02:00
Kai Sommerfeld
6b50909278 Merge pull request #23 from Rechi/fixWindows
[cleanup] remove unused includes
2019-05-10 23:28:55 +02:00
Rechi
61c5f2a0d7 [cleanup] remove unused includes
this fixes windows build failures
2019-02-07 11:54:08 +01:00
Rechi
2b39863f5b [depends] jsoncpp: add checksum file 2019-02-07 11:54:08 +01:00
10 changed files with 17 additions and 13 deletions

View File

@@ -22,7 +22,9 @@ matrix:
sudo: required
compiler: clang
- os: osx
osx_image: xcode10.2
osx_image: xcode9
- os: osx
osx_image: xcode9.4
#
# The addon source is automatically checked out in $TRAVIS_BUILD_DIR,
@@ -30,7 +32,7 @@ matrix:
#
before_script:
- cd $TRAVIS_BUILD_DIR/..
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
- git clone --branch Leia --depth=1 https://github.com/xbmc/xbmc.git
- cd ${app_id} && mkdir build && cd build
- mkdir -p definition/${app_id}
- echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt

View File

@@ -4,10 +4,12 @@ project(pvr.octonet)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
find_package(JsonCpp REQUIRED)
include_directories(
${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${JSONCPP_INCLUDE_DIRS})

2
Jenkinsfile vendored
View File

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

View File

@@ -20,7 +20,7 @@ $ git clone https://github.com/DigitalDevices/pvr.octonet.git
Clone the Kodi repository:
```
$ git clone --branch master https://github.com/xbmc/xbmc.git
$ git clone --branch Leia https://github.com/xbmc/xbmc.git
```
```

View File

@@ -29,7 +29,7 @@ artifacts:
build_script:
- cd ..
- set ROOT=%cd%
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
- git clone --branch Leia --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%

2
debian/control vendored
View File

@@ -2,7 +2,7 @@ Source: kodi-pvr-octonet
Priority: extra
Maintainer: Julian Scheel <julian@jusst.de>
Build-Depends: debhelper (>= 9.0.0), cmake, libjsoncpp-dev,
libp8-platform-dev, kodi-addon-dev
libkodiplatform-dev (>= 16.0.0), kodi-addon-dev
Standards-Version: 3.9.4
Section: libs
Homepage: https://github.com/DigitalDevices/pvr.octonet

View File

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

View File

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

View File

@@ -68,7 +68,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, int iChannelUid, time_t start, time_t end);
virtual PVR_ERROR getEPG(ADDON_HANDLE handle, const PVR_CHANNEL &channel, 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, int iChannelUid, time_t iStart, time_t iEnd)
PVR_ERROR GetEPGForChannel(ADDON_HANDLE handle, const PVR_CHANNEL& channel, time_t iStart, time_t iEnd)
{
return data->getEPG(handle, iChannelUid, iStart, iEnd);
return data->getEPG(handle, channel, 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; }