#!/bin/bash
# docker commit 8d46b6d2b259 xinjiawei1/emby_unlockd:4.9.5.0b
export LANG=C.UTF-8

main_domain="http://cf2.mb6.top/tmp/emby"
echo "docker一键**脚本，适4.9.5.0版本"
echo "-------------------web端**-------------------"
rm -f /system/Emby.Web.dll
wget -P /system/ "$main_domain/4.9.5.0/linux_32_64/Emby.Web.dll"
echo "核心完成..."
rm -f /system/dashboard-ui/modules/emby-apiclient/connectionmanager.js
wget -P /system/dashboard-ui/modules/emby-apiclient/ "$main_domain/4.9.5.0/linux_32_64/dashboard-ui/modules/emby-apiclient/connectionmanager.js"
rm -f /system/dashboard-ui/embypremiere/embypremiere.js
wget -P /system/dashboard-ui/embypremiere/ "$main_domain/4.9.5.0/linux_32_64/dashboard-ui/embypremiere/embypremiere.js"
echo "web完成..."
rm -f /system/Emby.Server.Implementations.dll
wget -P /system/ "$main_domain/4.9.5.0/linux_32_64/Emby.Server.Implementations.dll"
echo "Implementations替换认证完成..."