blob: d5782c22409d770c877813db9698650da2080c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# pd -- download podcast episode(s)
eval curl -ZL "$(sed -n 's/^Link: \|File: //p' |
sed 's/ / /g; s/\\/\\\\/g; '"s/'/'\"'\"'/g" |
paste - - |
while IFS=' ' read link file; do
file=`printf '%s\n' "$file" | sed "s/\"/'\"'\"'/g"`
printf "-o '%s' '%s' " "$file" "$link"
done)"
|