summaryrefslogtreecommitdiff
path: root/pd
blob: b76f1d002acb2596b74b15ccdcea06b82ce03b85 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# pd -- download podcast episode(s)

eval curl -ZL "$(sed -n 's/^Title: \|File: //p' |
sed 's/	/ /g; s/\\/\\\\/g; '"s/'/\\\\'/g" |
paste - - |
while IFS='	' read title file; do
	printf "-o '%s' '%s' " "$title.${file##*.}" "$file"
done)"