2022-01-21 18:30:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
data=$(curl -l "$1" | grep /d/)
|
2022-01-25 16:01:04 +00:00
|
|
|
base=$(cut -d/ -f1-5 <<< "${1/v/d}")
|
|
|
|
num=$(awk -F'[()]' '{print $4}' <<< "$data" | bc)
|
|
|
|
name=$(cut -d/ -f5 <<< "$data")
|
2022-01-21 18:30:10 +00:00
|
|
|
aria2c "$base/$num/$name"
|