From b17ee2421230a8b5701714d9950d933342489793 Mon Sep 17 00:00:00 2001 From: tianyu Date: Thu, 23 Jul 2015 09:16:57 +0800 Subject: [PATCH] Update aria2-complete.sh --- net/youtube/aria2-complete.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/youtube/aria2-complete.sh b/net/youtube/aria2-complete.sh index 4458894..ed4d358 100644 --- a/net/youtube/aria2-complete.sh +++ b/net/youtube/aria2-complete.sh @@ -6,4 +6,5 @@ API_URI=https://remote.example.com/rm/ echo "$3" >>/tmp/aria2-complete.txt -curl -v --user $USER:$PASSWORD $API_URI -X POST -d "files=$(basename $3)" --capath /etc/ssl/certs/ >>/tmp/aria2.txt 2>&1 +FILENAME=$(basename "$3") +curl -s -v --user $USER:$PASSWORD $API_URI -X POST -d "files=$FILENAME" --capath /etc/ssl/certs/ >>/tmp/aria2.txt 2>&1