diff options
-rwxr-xr-x | pd | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2,4 +2,9 @@ # pd -- download podcast episode(s) -curl -Z `sed -n 's/Link: /-OJL /p'` +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)" |