mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-08 16:07:21 +08:00
Create aria2-complete.sh
This commit is contained in:
9
net/youtube/aria2-complete.sh
Normal file
9
net/youtube/aria2-complete.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
USER=HTTP_USER
|
||||
PASSWORD=HTTP_PASSWORD
|
||||
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
|
Reference in New Issue
Block a user