aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-07-07 08:40:07 +0200
committerneodarz <neodarz@neodarz.net>2019-07-07 08:40:07 +0200
commitf27176c03aaaac3457d2c545e39294ec2c99b08e (patch)
treecad35ccfe03508529b72cbacd95e892b1ef54a3c
parentc3caba049861149611be6de5059ef2801bdc3916 (diff)
downloadbandcamp-dl_script-f27176c03aaaac3457d2c545e39294ec2c99b08e.tar.xz
bandcamp-dl_script-f27176c03aaaac3457d2c545e39294ec2c99b08e.zip
Fix to only select the word music at the end of urlHEADmaster
Diffstat (limited to '')
-rwxr-xr-xbandcamp-dl.sh2
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..."