diff --git a/package/ctcgfw/luci-app-unblockneteasemusic-mini/Makefile b/package/ctcgfw/luci-app-unblockneteasemusic-mini/Makefile index a9650ef73b..9df4af8d1e 100644 --- a/package/ctcgfw/luci-app-unblockneteasemusic-mini/Makefile +++ b/package/ctcgfw/luci-app-unblockneteasemusic-mini/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-unblockneteasemusic-mini PKG_VERSION:=1.2 -PKG_RELEASE:=3 +PKG_RELEASE:=4 LUCI_TITLE:=LuCI support for UnblockNeteaseMusic(-Go) LUCI_DEPENDS:=+busybox +dnsmasq-full +ipset +iptables +wget LUCI_PKGARCH:=all diff --git a/package/ctcgfw/luci-app-unblockneteasemusic-mini/luasrc/model/cbi/unblockneteasemusic-mini.lua b/package/ctcgfw/luci-app-unblockneteasemusic-mini/luasrc/model/cbi/unblockneteasemusic-mini.lua index 251b62abec..16e320bc41 100644 --- a/package/ctcgfw/luci-app-unblockneteasemusic-mini/luasrc/model/cbi/unblockneteasemusic-mini.lua +++ b/package/ctcgfw/luci-app-unblockneteasemusic-mini/luasrc/model/cbi/unblockneteasemusic-mini.lua @@ -2,7 +2,7 @@ -- https://github.com/project-openwrt mp = Map("unblockneteasemusic-mini", translate("解除网易云音乐播放限制 (Mini)")) -mp.description = translate("原理:采用 [QQ/酷狗/酷我/咕咪] 等音源,替换网易云音乐 无版权/收费 歌曲链接
由 [CTCGFW]Project-OpenWrt 提供服务器支持,来源: https://github.com/project-openwrt/luci-app-unblockneteasemusic-mini") +mp.description = translate("原理:采用 [QQ/酷狗/酷我/咕咪] 等音源,替换网易云音乐 无版权/收费 歌曲链接
由 [CTCGFW]Project-OpenWrt & @hyird 提供服务器支持
详细说明参见:https://github.com/project-openwrt/luci-app-unblockneteasemusic-mini") mp:section(SimpleSection).template = "unblockneteasemusic-mini/unblockneteasemusic_mini_status" @@ -17,6 +17,7 @@ enable.rmempty = false select_server = s:option(ListValue, "select_server", translate("服务端类型")) select_server:value("tencent_shanghai_nodejs", translate("腾讯云上海 Node.js 版本(高音质)")) +select_server:value("tencent_beijing_nodejs", translate("腾讯云北京 Node.js 版本(高音质)")) select_server:value("tencent_shanghai_golang", translate("腾讯云上海 Golang 版本(低音质)")) select_server.description = translate("Node.js版使用QQ、酷我、咪咕音源,Golang版使用酷狗、酷我、咪咕音源") select_server.default = "tencent_shanghai_nodejs" diff --git a/package/ctcgfw/luci-app-unblockneteasemusic-mini/root/etc/init.d/unblockneteasemusic-mini b/package/ctcgfw/luci-app-unblockneteasemusic-mini/root/etc/init.d/unblockneteasemusic-mini index 6a956b24f8..8ca3f88e41 100755 --- a/package/ctcgfw/luci-app-unblockneteasemusic-mini/root/etc/init.d/unblockneteasemusic-mini +++ b/package/ctcgfw/luci-app-unblockneteasemusic-mini/root/etc/init.d/unblockneteasemusic-mini @@ -14,6 +14,12 @@ if [ "${select_server}" = "tencent_shanghai_nodejs" ]; then [ -z "${unblock_server_ip}" ] && unblock_server_ip="122.51.88.18" unblock_server_http_port="30000" unblock_server_https_port="30001" +elif [ "${select_server}" = "tencent_beijing_nodejs" ]; then + unblock_server_addr="hyird.xyz" + unblock_server_ip="$(ping "hyird.xyz" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')" + [ -z "${unblock_server_ip}" ] && unblock_server_ip="182.92.84.98" + unblock_server_http_port="30000" + unblock_server_https_port="30001" elif [ "${select_server}" = "tencent_shanghai_golang" ]; then unblock_server_addr="cdn-shanghai.service.project-openwrt.eu.org" unblock_server_ip="$(ping "cdn-shanghai.service.project-openwrt.eu.org" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')"