mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-26 08:43:19 +00:00
7 lines
189 B
Bash
Executable file
7 lines
189 B
Bash
Executable file
#!/bin/bash
|
|
data=$(curl -l "$1" | grep /d/)
|
|
base=$(cut -d/ -f1-5 <<< "${1/v/d}")
|
|
num=$(awk -F'[()]' '{print $4}' <<< "$data" | bc)
|
|
name=$(cut -d/ -f5 <<< "$data")
|
|
aria2c "$base/$num/$name"
|