mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
luci-app-unblockneteasemusic-mini: bump to v1.2-4
This commit is contained in:
parent
d2992749ac
commit
df3a6d82ba
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-unblockneteasemusic-mini
|
PKG_NAME:=luci-app-unblockneteasemusic-mini
|
||||||
PKG_VERSION:=1.2
|
PKG_VERSION:=1.2
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
LUCI_TITLE:=LuCI support for UnblockNeteaseMusic(-Go)
|
LUCI_TITLE:=LuCI support for UnblockNeteaseMusic(-Go)
|
||||||
LUCI_DEPENDS:=+busybox +dnsmasq-full +ipset +iptables +wget
|
LUCI_DEPENDS:=+busybox +dnsmasq-full +ipset +iptables +wget
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
-- https://github.com/project-openwrt
|
-- https://github.com/project-openwrt
|
||||||
|
|
||||||
mp = Map("unblockneteasemusic-mini", translate("解除网易云音乐播放限制 (Mini)"))
|
mp = Map("unblockneteasemusic-mini", translate("解除网易云音乐播放限制 (Mini)"))
|
||||||
mp.description = translate("原理:采用 [QQ/酷狗/酷我/咕咪] 等音源,替换网易云音乐 无版权/收费 歌曲链接<br/>由 [CTCGFW]Project-OpenWrt 提供服务器支持,来源: https://github.com/project-openwrt/luci-app-unblockneteasemusic-mini")
|
mp.description = translate("原理:采用 [QQ/酷狗/酷我/咕咪] 等音源,替换网易云音乐 无版权/收费 歌曲链接<br/>由 [CTCGFW]Project-OpenWrt & @hyird 提供服务器支持<br/>详细说明参见:https://github.com/project-openwrt/luci-app-unblockneteasemusic-mini")
|
||||||
|
|
||||||
mp:section(SimpleSection).template = "unblockneteasemusic-mini/unblockneteasemusic_mini_status"
|
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 = s:option(ListValue, "select_server", translate("服务端类型"))
|
||||||
select_server:value("tencent_shanghai_nodejs", translate("腾讯云上海 Node.js 版本(高音质)"))
|
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:value("tencent_shanghai_golang", translate("腾讯云上海 Golang 版本(低音质)"))
|
||||||
select_server.description = translate("Node.js版使用QQ、酷我、咪咕音源,Golang版使用酷狗、酷我、咪咕音源")
|
select_server.description = translate("Node.js版使用QQ、酷我、咪咕音源,Golang版使用酷狗、酷我、咪咕音源")
|
||||||
select_server.default = "tencent_shanghai_nodejs"
|
select_server.default = "tencent_shanghai_nodejs"
|
||||||
|
@ -14,6 +14,12 @@ if [ "${select_server}" = "tencent_shanghai_nodejs" ]; then
|
|||||||
[ -z "${unblock_server_ip}" ] && unblock_server_ip="122.51.88.18"
|
[ -z "${unblock_server_ip}" ] && unblock_server_ip="122.51.88.18"
|
||||||
unblock_server_http_port="30000"
|
unblock_server_http_port="30000"
|
||||||
unblock_server_https_port="30001"
|
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
|
elif [ "${select_server}" = "tencent_shanghai_golang" ]; then
|
||||||
unblock_server_addr="cdn-shanghai.service.project-openwrt.eu.org"
|
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}')"
|
unblock_server_ip="$(ping "cdn-shanghai.service.project-openwrt.eu.org" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user