#!/bin/bash
export LANG=C.UTF-8

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


echo "网页播放器背景图片透明度微调，背景图片稍微会清楚一点。"
rm -f /system/dashboard-ui/modules/themes/dark/theme.css
wget -P /system/dashboard-ui/modules/themes/dark/ "$main_domain/4.7.11.0/linux64_docker64_4.7.11/dashboard-ui/modules/themes/dark/theme.css
rm -f /system/dashboard-ui/modules/themes/light/theme.css
wget -P /system/dashboard-ui/modules/themes/light/ "$main_domain/4.7.11.0/linux64_docker64_4.7.11/dashboard-ui/modules/themes/light/theme.css
echo "替换主题css完成..."
rm -rf synology6-7crack_4.7.11.sh
echo "-------------------删除脚本完成，预防重运行出错-------------------"

