mirror of
https://github.com/bin456789/reinstall.git
synced 2026-09-02 22:04:52 +08:00
windows: 更新 ntriver 链接格式
This commit is contained in:
@@ -1722,9 +1722,9 @@ Continue?
|
||||
if false && test_url_grace "$iso" iso 2>/dev/null; then
|
||||
iso_is_tested=true
|
||||
iso_is_direct_link=true
|
||||
elif [[ $(echo "$iso" | to_lower) =~ ^https://ntriver.org/drive/.*\.(iso|img)$ ]]; then
|
||||
elif [[ $(echo "$iso" | to_lower) =~ ^https://ntriver.org/drive\?.*\.(iso|img)$ ]]; then
|
||||
info "get direct link"
|
||||
local iso_name=${iso##*/}
|
||||
local iso_name=${iso##*\?}
|
||||
local direct_link
|
||||
if direct_link=$(curl -L "https://delivery-api.ntriver.org/generate-link?filename=$iso_name" |
|
||||
grep -oE '"url":"[^"]+"' | cut -d: -f2- | tr -d '"' | grep .); then
|
||||
|
||||
Reference in New Issue
Block a user