diff --git a/down.sh b/down.sh index 133d705..30f0f7e 100755 --- a/down.sh +++ b/down.sh @@ -63,7 +63,8 @@ download() { # mp3path=$(mktemp -p cache "${name}.XXXXXX.mp3") dryrun && continue cd cache || return - fname=$(curl -s -w "%{filename_effective}" -f -L $(make_fname "$ftype" "$name" "$title") "$mp3url") + read -ra title_options < <(make_fname "$ftype" "$name" "$title") + fname=$(curl -s -w "%{filename_effective}" -f -L "${title_options[@]}" "$mp3url") cd .. mv {cache,Podcasts}/"$fname"