Skip to content

Commit

Permalink
bump: embyserver 4.8.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Nov 8, 2024
1 parent c23fcd0 commit a00ba65
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 23 deletions.
46 changes: 28 additions & 18 deletions all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2476,22 +2476,16 @@ function install_emby_xiaoya_all_emby() {
if [ -n "${version}" ]; then
IMAGE_VERSION="${version}"
else
IMAGE_VERSION=4.8.0.56
IMAGE_VERSION=4.8.9.0
fi

# shellcheck disable=SC2154
if [ "${image}" == "emby" ]; then
install_emby_embyserver
else
# 因为amilys embyserver arm64镜像没有4.8.0.56这个版本号,所以这边规定只能使用latest
cpu_arch=$(uname -m)
case $cpu_arch in
"x86_64" | *"amd64"*)
install_amilys_embyserver
;;
"aarch64" | *"arm64"* | *"armv8"* | *"arm/v8"*)
WARN "amilys/embyserver_arm64v8 镜像无法指定版本号,忽略镜像版本号设置,默认拉取latest镜像!"
IMAGE_VERSION=latest
"x86_64" | *"amd64"* | "aarch64" | *"arm64"* | *"armv8"* | *"arm/v8"*)
install_amilys_embyserver
;;
*)
Expand Down Expand Up @@ -2541,9 +2535,9 @@ function install_emby_xiaoya_all_emby() {
IMAGE_VERSION=latest
break
else
INFO "请选择 Emby 镜像版本 [ 1;4.8.0.56 | 2;4.8.8.0 | 3;latest(${amilys_embyserver_latest_version}) ](默认 1"
INFO "请选择 Emby 镜像版本 [ 1;4.8.0.56 | 2;4.8.8.0 | 3;4.8.9.0 | 4;latest(${amilys_embyserver_latest_version}) ](默认 3"
read -erp "CHOOSE_IMAGE_VERSION:" CHOOSE_IMAGE_VERSION
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="1"
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="3"
case ${CHOOSE_IMAGE_VERSION} in
1)
IMAGE_VERSION=4.8.0.56
Expand All @@ -2554,6 +2548,10 @@ function install_emby_xiaoya_all_emby() {
break
;;
3)
IMAGE_VERSION=4.8.9.0
break
;;
4)
IMAGE_VERSION=latest
break
;;
Expand All @@ -2569,9 +2567,9 @@ function install_emby_xiaoya_all_emby() {
break
;;
"emby_embyserver")
INFO "请选择 Emby 镜像版本 [ 1;4.8.0.56 | 2;4.8.8.0 | 3;latest(${emby_embyserver_latest_version}) ](默认 1"
INFO "请选择 Emby 镜像版本 [ 1;4.8.0.56 | 2;4.8.8.0 | 3;4.8.9.0 | 3;latest(${emby_embyserver_latest_version}) ](默认 3"
read -erp "CHOOSE_IMAGE_VERSION:" CHOOSE_IMAGE_VERSION
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="1"
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="3"
case ${CHOOSE_IMAGE_VERSION} in
1)
IMAGE_VERSION=4.8.0.56
Expand All @@ -2582,6 +2580,10 @@ function install_emby_xiaoya_all_emby() {
break
;;
3)
IMAGE_VERSION=4.8.9.0
break
;;
4)
IMAGE_VERSION=latest
break
;;
Expand Down Expand Up @@ -2649,19 +2651,23 @@ function oneclick_upgrade_emby() {
IMAGE_VERSION=latest
break
else
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;latest(${amilys_embyserver_latest_version})| 3;beta(此版本请勿轻易尝试)](默认 1"
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;4.8.9.0 | 3;latest(${amilys_embyserver_latest_version})| 4;beta(此版本请勿轻易尝试)](默认 2"
read -erp "CHOOSE_IMAGE_VERSION:" CHOOSE_IMAGE_VERSION
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="1"
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="2"
case ${CHOOSE_IMAGE_VERSION} in
1)
IMAGE_VERSION=4.8.8.0
break
;;
2)
IMAGE_VERSION=latest
IMAGE_VERSION=4.8.9.0
break
;;
3)
IMAGE_VERSION=latest
break
;;
4)
IMAGE_VERSION=beta
break
;;
Expand All @@ -2674,19 +2680,23 @@ function oneclick_upgrade_emby() {
WARN "lovechen/embyserver 镜像无法更新!"
exit 0
elif [ "${old_image_name}" == "emby/embyserver" ] || [ "${old_image_name}" == "emby/embyserver_arm64v8" ]; then
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;latest(${emby_embyserver_latest_version}) | 3;beta(此版本请勿轻易尝试) ](默认 1"
INFO "请选择 Emby 镜像版本 [ 1;4.8.8.0 | 2;4.8.9.0 | 3;latest(${emby_embyserver_latest_version}) | 4;beta(此版本请勿轻易尝试) ](默认 2"
read -erp "CHOOSE_IMAGE_VERSION:" CHOOSE_IMAGE_VERSION
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="1"
[[ -z "${CHOOSE_IMAGE_VERSION}" ]] && CHOOSE_IMAGE_VERSION="2"
case ${CHOOSE_IMAGE_VERSION} in
1)
IMAGE_VERSION=4.8.8.0
break
;;
2)
IMAGE_VERSION=latest
IMAGE_VERSION=4.8.9.0
break
;;
3)
IMAGE_VERSION=latest
break
;;
4)
IMAGE_VERSION=beta
break
;;
Expand Down
10 changes: 5 additions & 5 deletions emby_config_editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ function set_image() {

function set_version() {

if [ "${version}" == "4.8.0.56" ]; then
if [ "${version}" == "4.8.9.0" ]; then
new_version=latest
elif [ "${version}" == "latest" ]; then
new_version=4.8.0.56
new_version=4.8.9.0
else
new_version=4.8.0.56
new_version=4.8.9.0
fi

sedsh "s/version=.*/version=${new_version}/" "${config_dir}/emby_config.txt"
Expand Down Expand Up @@ -254,7 +254,7 @@ if [ ! -s "${config_dir}/emby_config.txt" ]; then
echo "image=emby"
echo "media_dir="
echo "resilio=no"
echo "version=4.8.0.56"
echo "version=4.8.9.0"
} >> "${config_dir}/emby_config.txt"
else
# shellcheck disable=SC1091
Expand All @@ -275,7 +275,7 @@ else
echo "resilio=no" >> "${config_dir}/emby_config.txt"
fi
if [ -z "${version}" ]; then
echo "version=4.8.0.56" >> "${config_dir}/emby_config.txt"
echo "version=4.8.9.0" >> "${config_dir}/emby_config.txt"
fi
fi

Expand Down

0 comments on commit a00ba65

Please sign in to comment.