Prechádzať zdrojové kódy

fix: update repo name

Signed-off-by: Tianling Shen <[email protected]>
Tianling Shen 4 rokov pred
rodič
commit
51cd6aabe9

+ 1 - 1
Makefile

@@ -10,7 +10,7 @@ LUCI_PKGARCH:=all
 
 PKG_NAME:=luci-app-unblockneteasemusic
 PKG_VERSION:=2.11
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_MAINTAINER:=Tianling Shen <[email protected]>
 

+ 2 - 2
README.md

@@ -37,7 +37,7 @@
 - ##### 特别说明
 1. 首次使用本插件时,将会在后台下载核心程序,故启动时间可能会稍微长一点
 2. 如需使用网页端,请额外安装 Tampermonkey 插件:[NeteaseMusic UI Unlocker](https://greasyfork.org/zh-CN/scripts/382285-neteasemusic-ui-unlocker)
-3. 推荐在客户端信任 [UnblockNeteaseMusic 证书](https://raw.githubusercontent.com/1715173329/UnblockNeteaseMusic/enhanced/ca.crt),以便 HTTPS 通讯(若您不放心,也可以[自行签发证书](https://github.com/nondanee/UnblockNeteaseMusic/issues/48#issuecomment-477870013))
+3. 推荐在客户端信任 [UnblockNeteaseMusic 证书](https://raw.githubusercontent.com/UnblockNeteaseMusic/server/enhanced/ca.crt),以便 HTTPS 通讯(若您不放心,也可以[自行签发证书](https://github.com/nondanee/UnblockNeteaseMusic/issues/48#issuecomment-477870013))
 
 ### 效果图
 #### luci界面
@@ -52,7 +52,7 @@
 在遵循此协议的前提下,你可以自由修改和分发
 
 ### 鸣谢
-[UnblockNeteaseMusic](https://github.com/1715173329/UnblockNeteaseMusic)的开发者:[nondanee](https://github.com/nondanee)、[pan93412](https://github.com/pan93412)、[1715173329](https://github.com/1715173329)<br/>
+[UnblockNeteaseMusic](https://github.com/UnblockNeteaseMusic/server)的开发者:[nondanee](https://github.com/nondanee)、[pan93412](https://github.com/pan93412)、[1715173329](https://github.com/1715173329)<br/>
 [luci-app-unblockmusic](https://github.com/maxlicheng/luci-app-unblockmusic)的开发者:[maxlicheng](https://github.com/maxlicheng)<br/>
 [luci-app-unblockmusic(二次修改)](https://github.com/coolsnowwolf/lede/tree/master/package/lean/luci-app-unblockmusic)的开发者:[Lean](https://github.com/coolsnowwolf)<br/>
 IPSet 劫持方式指导:[恩山 692049#125 楼](https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=692049&page=9#pid4104303) [rufengsuixing](https://github.com/rufengsuixing/luci-app-unblockmusic) [binsee](https://github.com/binsee/luci-app-unblockmusic)<br/>

+ 1 - 1
luasrc/controller/unblockneteasemusic.lua

@@ -31,7 +31,7 @@ function act_status()
 end
 
 function update_core()
-	core_cloud_ver=luci.sys.exec("uclient-fetch -q -O- 'https://api.github.com/repos/1715173329/UnblockNeteaseMusic/commits/enhanced' | jsonfilter -e '@.sha'")
+	core_cloud_ver=luci.sys.exec("uclient-fetch -q -O- 'https://api.github.com/repos/UnblockNeteaseMusic/server/commits/enhanced' | jsonfilter -e '@.sha'")
 	core_cloud_ver_mini=string.sub(core_cloud_ver, 1, 7)
 	if not core_cloud_ver or not core_cloud_ver_mini then
 		return "1"

+ 4 - 4
root/usr/share/unblockneteasemusic/update.sh

@@ -14,7 +14,7 @@ function clean_log(){
 }
 
 function check_core_latest_version(){
-	core_latest_ver="$(uclient-fetch -q -O- 'https://api.github.com/repos/1715173329/UnblockNeteaseMusic/commits/enhanced' | jsonfilter -e '@.sha')"
+	core_latest_ver="$(uclient-fetch -q -O- 'https://api.github.com/repos/UnblockNeteaseMusic/server/commits/enhanced' | jsonfilter -e '@.sha')"
 	[ -z "${core_latest_ver}" ] && { echo -e "\nFailed to check latest core version, please try again later." >> "/tmp/$NAME.log"; exit 1; }
 	if [ ! -e "/usr/share/$NAME/core_local_ver" ]; then
 		clean_log
@@ -39,10 +39,10 @@ function update_core(){
 	mkdir -p "/usr/share/$NAME/core" > "/dev/null" 2>&1
 	rm -rf /usr/share/$NAME/core/* > "/dev/null" 2>&1
 
-	uclient-fetch -q "https://codeload.github.com/1715173329/UnblockNeteaseMusic/tar.gz/${core_latest_ver}" -O "/usr/share/$NAME/core/core.tar.gz" > "/dev/null" 2>&1
+	uclient-fetch -q "https://codeload.github.com/UnblockNeteaseMusic/server/tar.gz/${core_latest_ver}" -O "/usr/share/$NAME/core/core.tar.gz" > "/dev/null" 2>&1
 	tar -zxf "/usr/share/$NAME/core/core.tar.gz" -C "/usr/share/$NAME/core/" > "/dev/null" 2>&1
-	mv "/usr/share/$NAME/core/UnblockNeteaseMusic-${core_latest_ver}"/* "/usr/share/$NAME/core/"
-	rm -rf "/usr/share/$NAME/core/core.tar.gz" "/usr/share/$NAME/core/UnblockNeteaseMusic-${core_latest_ver}" > "/dev/null" 2>&1
+	mv "/usr/share/$NAME/core/server-${core_latest_ver}"/* "/usr/share/$NAME/core/"
+	rm -rf "/usr/share/$NAME/core/core.tar.gz" "/usr/share/$NAME/core/server-${core_latest_ver}" > "/dev/null" 2>&1
 
 	if [ ! -e "/usr/share/$NAME/core/app.js" ]; then
 		echo -e "Failed to download core." >> "/tmp/$NAME.log"