mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
luci-app-unblockneteasemusic-mini: remove outdated server
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
This commit is contained in:
parent
1774e6e9a3
commit
6c08a77c3f
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# This is a free software, use it under GNU General Public License v3.0.
|
# This is a free software, use it under GNU General Public License v3.0.
|
||||||
#
|
#
|
||||||
# Created By [CTCGFW]Project-OpenWrt
|
# Created By ImmortalWrt
|
||||||
# https://github.com/project-openwrt
|
# https://github.com/project-openwrt
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
@ -14,7 +14,7 @@ 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
|
||||||
|
|
||||||
PKG_MAINTAINER:=[CTCGFW]Project-OpenWrt
|
PKG_MAINTAINER:=ImmortalWrt
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
-- Created By [CTCGFW]Project-OpenWrt
|
-- Created By ImmortalWrt
|
||||||
-- 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 & hyird & Sunsky 提供服务器支持<br/>详细说明参见:https://github.com/project-openwrt/luci-app-unblockneteasemusic-mini")
|
mp.description = translate("原理:采用 [QQ/酷狗/酷我/咪咕] 等音源,替换网易云音乐 无版权/收费 歌曲链接<br/>由 Project ImmortalWrt 提供服务器支持<br/>详细说明参见:https://github.com/immortalwrt/luci-app-unblockneteasemusic-mini")
|
||||||
|
|
||||||
mp:section(SimpleSection).template = "unblockneteasemusic-mini/unblockneteasemusic_mini_status"
|
mp:section(SimpleSection).template = "unblockneteasemusic-mini/unblockneteasemusic_mini_status"
|
||||||
|
|
||||||
@ -16,7 +16,6 @@ enable.default = 0
|
|||||||
enable.rmempty = false
|
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("[CTCGFW] 腾讯云上海(高音质)"))
|
|
||||||
select_server:value("ucloud_guangzhou_nodejs", translate("[CTCGFW] UCloud广州(高音质)"))
|
select_server:value("ucloud_guangzhou_nodejs", translate("[CTCGFW] UCloud广州(高音质)"))
|
||||||
select_server.description = translate("请合理使用本插件与各个服务器,请勿滥用")
|
select_server.description = translate("请合理使用本插件与各个服务器,请勿滥用")
|
||||||
select_server.default = "tencent_shanghai_nodejs"
|
select_server.default = "tencent_shanghai_nodejs"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Created By [CTCGFW]Project OpenWRT
|
# Created By ImmortalWrt
|
||||||
# https://github.com/project-openwrt
|
# https://github.com/immortalwrt
|
||||||
|
|
||||||
START=92
|
START=92
|
||||||
STOP=10
|
STOP=10
|
||||||
@ -8,12 +8,7 @@ STOP=10
|
|||||||
enable="$(uci get unblockneteasemusic-mini.@unblockneteasemusic-mini[0].enable)"
|
enable="$(uci get unblockneteasemusic-mini.@unblockneteasemusic-mini[0].enable)"
|
||||||
select_server="$(uci get unblockneteasemusic-mini.@unblockneteasemusic-mini[0].select_server)"
|
select_server="$(uci get unblockneteasemusic-mini.@unblockneteasemusic-mini[0].select_server)"
|
||||||
|
|
||||||
if [ "${select_server}" = "tencent_shanghai_nodejs" ]; then
|
if [ "${select_server}" = "ucloud_guangzhou_nodejs" ]; then
|
||||||
unblock_server_ip="$(ping "cdn-shanghai.service.project-openwrt.eu.org" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')"
|
|
||||||
[ -z "${unblock_server_ip}" ] && unblock_server_ip="122.51.88.18"
|
|
||||||
unblock_server_http_port="30000"
|
|
||||||
unblock_server_https_port="30001"
|
|
||||||
elif [ "${select_server}" = "ucloud_guangzhou_nodejs" ]; then
|
|
||||||
unblock_server_ip="$(ping "uc-gz.service.project-openwrt.eu.org" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')"
|
unblock_server_ip="$(ping "uc-gz.service.project-openwrt.eu.org" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')"
|
||||||
[ -z "${unblock_server_ip}" ] && unblock_server_ip="106.75.156.183"
|
[ -z "${unblock_server_ip}" ] && unblock_server_ip="106.75.156.183"
|
||||||
unblock_server_http_port="30000"
|
unblock_server_http_port="30000"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user