Skip to content

Commit

Permalink
nextpvr: add default settings file
Browse files Browse the repository at this point in the history
Kodi doesn't pass environment variables unless the user saves a configuration.   Use sub3 github release repo for downloading
  • Loading branch information
emveepee committed Jan 9, 2023
1 parent 4a8b551 commit 5148ae8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/addons/service/nextpvr/changelog.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
1
Fix for variables that aren't initialized by Kodi

0
initial release
4 changes: 2 additions & 2 deletions packages/addons/service/nextpvr/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

PKG_NAME="nextpvr"
PKG_VERSION="6.1.1~Nexus"
PKG_ADDON_VERSION="6.1.1"
PKG_REV="0"
PKG_ADDON_VERSION="6.1.1~1"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="NextPVR"
PKG_SITE="https://nextpvr.com"
Expand Down
5 changes: 3 additions & 2 deletions packages/addons/service/nextpvr/source/bin/nextpvr-downloader
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ oe_setup_addon service.nextpvr
ICON="${ADDON_DIR}/resources/icon.png"
CONTROL_FILE="/tmp/curl.nextpvr.done"
DATA_FILE="/tmp/curl.nextpvr.data"
NEXTPVR_FILE="NPVR-@[email protected]"
NEXTPVR_VERSION="@NEXTPVR_VERSION@"
NEXTPVR_FILE="NPVR-${NEXTPVR_VERSION%~*}.zip"

# check for enough free disk space
if [ $(df . | awk 'END {print $4}') -lt 400000 ]; then
Expand Down Expand Up @@ -39,7 +40,7 @@ echo "Downloading NextPVR"
# download NextPVR
rm -f ${CONTROL_FILE} ${DATA_FILE}
(
curl -# -O -C - https://nextpvr.com/stable/linux/${NEXTPVR_FILE} 2>${DATA_FILE}
curl -L -# -O -C - https://github.com/sub3/releases/releases/download/${NEXTPVR_VERSION}%~*/${NEXTPVR_FILE} 2>${DATA_FILE}
touch ${CONTROL_FILE}
) |
while [ : ]; do
Expand Down
4 changes: 4 additions & 0 deletions packages/addons/service/nextpvr/source/settings-default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<settings version="2">
<setting id="waitfor" default="true">5</setting>
<setting id="satiprtsp" default="true">554</setting>
</settings>

0 comments on commit 5148ae8

Please sign in to comment.