From f27176c03aaaac3457d2c545e39294ec2c99b08e Mon Sep 17 00:00:00 2001 From: neodarz Date: Sun, 7 Jul 2019 08:40:07 +0200 Subject: Fix to only select the word music at the end of url --- bandcamp-dl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bandcamp-dl.sh') 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..." -- cgit v1.2.1