mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
emby: update to 3.4.1.6
This commit is contained in:
parent
4aa28f292b
commit
dab55f6a6d
@ -1,3 +1,7 @@
|
||||
119
|
||||
- Update to 3.4.1.6
|
||||
- Add script (emby-update) to update Emby
|
||||
|
||||
118
|
||||
- Update to 3.3.0.0
|
||||
- Moved ffmpegx to ffmpeg-tools add-on
|
||||
|
@ -17,9 +17,9 @@
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="emby"
|
||||
PKG_VERSION="3.3.0.0"
|
||||
PKG_SHA256="15ca0835d939dbd2ac730bafa1377276c3a63854fd6a2ace8ff02dd439cdd692"
|
||||
PKG_REV="118"
|
||||
PKG_VERSION="3.4.1.6"
|
||||
PKG_SHA256="8eb129f538cefec612239932fd85ddc6bd5221cd97613e142f41f2126412ea04"
|
||||
PKG_REV="119"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://emby.media"
|
||||
|
67
packages/addons/service/emby/source/bin/emby-update
Normal file
67
packages/addons/service/emby/source/bin/emby-update
Normal file
@ -0,0 +1,67 @@
|
||||
#!/bin/sh
|
||||
################################################################################
|
||||
# This file is part of LibreELEC - https://libreelec.tv
|
||||
# Copyright (C) 2018-present Team LibreELEC
|
||||
#
|
||||
# LibreELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# LibreELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. /etc/profile
|
||||
oe_setup_addon service.emby
|
||||
|
||||
# set version to use
|
||||
if [ -z "$1" ]; then
|
||||
# if no input
|
||||
echo -e "\nUsage:"
|
||||
echo -e "${0##*/} 3.4.1.0"
|
||||
echo -e "${0##*/} latest"
|
||||
echo -e "\n====== last releases ======"
|
||||
curl --silent "https://api.github.com/repos/MediaBrowser/Emby/releases" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | head -n 20
|
||||
echo -e "==========================="
|
||||
exit 0
|
||||
|
||||
# if input = latest
|
||||
elif [ "$1" = "latest" ]; then
|
||||
EMBY_VERSION=$(curl --silent "https://api.github.com/repos/MediaBrowser/Emby/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||
echo "latest is $EMBY_VERSION"
|
||||
read -p "continue (y/n)? " EMBY_CONT
|
||||
if [ $EMBY_CONT = "Y" ] || [ $EMBY_CONT = "y" ]; then
|
||||
echo ""
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# if input = 1.2.3.4
|
||||
else
|
||||
EMBY_VERSION="$1"
|
||||
fi
|
||||
|
||||
echo "1. stopping Emby service" && sleep 1
|
||||
systemctl stop service.emby
|
||||
|
||||
echo "2. download Emby version $EMBY_VERSION" && sleep 1
|
||||
rm -f /storage/.kodi/temp/Emby.Mono.zip
|
||||
curl --progress-bar --fail -L -o /storage/.kodi/temp/Emby.Mono.zip https://github.com/MediaBrowser/Emby/releases/download/$EMBY_VERSION/Emby.Mono.zip || exit 1
|
||||
|
||||
echo "3. removing old install" && sleep 1
|
||||
rm -rf $ADDON_DIR/Emby/system/*
|
||||
|
||||
echo "4. extracting Emby" && sleep 1
|
||||
unzip -q /storage/.kodi/temp/Emby.Mono.zip -d $ADDON_DIR/Emby/system
|
||||
|
||||
echo "5. restarting Emby service" && sleep 1
|
||||
systemctl start service.emby
|
||||
|
||||
echo "... done"
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user