diff --git a/podcast b/podcast index 4230375..2366195 100755 --- a/podcast +++ b/podcast @@ -3,10 +3,10 @@ cd "$(dirname "$(realpath "$0")")" if [ "$1" == "sync" ]; then - cat "urls"| while read url; do - curl -s -o .tmp.rss-file "$url" - name="$(cat .tmp.rss-file | xq -r '.rss.channel.title')" - mv .tmp.rss-file "${name}.rss" + cat urls | xargs -d '\n' curl -Z $(seq 1 $(wc -l