diff options
author | neodarz <neodarz@neodarz.net> | 2019-07-07 08:40:07 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-07-07 08:40:07 +0200 |
commit | f27176c03aaaac3457d2c545e39294ec2c99b08e (patch) | |
tree | cad35ccfe03508529b72cbacd95e892b1ef54a3c | |
parent | c3caba049861149611be6de5059ef2801bdc3916 (diff) | |
download | bandcamp-dl_script-f27176c03aaaac3457d2c545e39294ec2c99b08e.tar.xz bandcamp-dl_script-f27176c03aaaac3457d2c545e39294ec2c99b08e.zip |
Diffstat (limited to '')
-rwxr-xr-x | bandcamp-dl.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bandcamp-dl.sh b/bandcamp-dl.sh index b79c43d..9c7c658 100755 --- a/bandcamp-dl.sh +++ b/bandcamp-dl.sh @@ -12,7 +12,7 @@ base=$(echo $1 | sed -e "s/\/$//") urls=$(curl $base -o /tmp/bandcamp_out &> /dev/null ; cat /tmp/bandcamp_out | grep "href=\"/album" | cut -d"\"" -f2) -base=$(echo $base | sed -e "s/\/music//") +base=$(echo $base | sed -e "s/\/music$//") for url in $urls; do echo "Downloading $(echo $url | sed -e "s/^\/album\///g") album..." |