From 24c66ad928a5466ec6e870394568f50ccc949ba9 Mon Sep 17 00:00:00 2001 From: Jiayi Zhuang Date: Wed, 27 Aug 2025 08:47:34 +0800 Subject: [PATCH] Fix the conflict between global aria2 RPC configuration and aria2c command-line --- tools/dlmodels.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dlmodels.sh b/tools/dlmodels.sh index 9482db4af..19acf7fd1 100755 --- a/tools/dlmodels.sh +++ b/tools/dlmodels.sh @@ -33,7 +33,7 @@ check_file_pretrained() { else echo failed. starting download from huggingface. if command -v aria2c > /dev/null 2>&1; then - aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$1"/"$2" -d ./assets/"$1" -o "$2" + aria2c --enable-rpc=false --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$1"/"$2" -d ./assets/"$1" -o "$2" [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || { echo "please try again!" && exit 1; } else echo "aria2c command not found. Please install aria2c and try again." @@ -49,7 +49,7 @@ check_file_special() { else echo failed. starting download from huggingface. if command -v aria2c > /dev/null 2>&1; then - aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$2" -d ./assets/"$1" -o "$2" + aria2c --enable-rpc=false --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$2" -d ./assets/"$1" -o "$2" [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || { echo "please try again!" && exit 1; } else echo "aria2c command not found. Please install aria2c and try again."