diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | pc | 14 | ||||
-rwxr-xr-x | pd | 5 | ||||
-rwxr-xr-x | pi | 7 | ||||
-rwxr-xr-x | pl | 14 |
5 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..71a3b87 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +install: + install p* /usr/local/bin/ @@ -0,0 +1,14 @@ +#!/bin/sh + +curl -Ls "$@" | +sed -n '/<item>/,$p' | +sed -e '/^$/d' -e 's/^[ ]*//' | +awk -vFS='[<>]' ' + /<pubDate>/ { print "Date: " $3; } + /<title>/ { print "Subject: " $3; } + /<itunes:summary>/ { print "Summary: " $3; } + /<enclosure[^>]*>/ { print "Link: " $0; } + /<itunes:duration>/ { print "Duration: " $3; } + /<\/item>/ { print ""; } +' | +sed 's,<enclosure[^>]* url="\([^"]*\)".*,\1,' @@ -0,0 +1,5 @@ +#!/bin/sh + +# pd -- download podcast episode(s) + +curl -Z `sed -n 's/Link: /-OJL /p'` @@ -0,0 +1,7 @@ +#!/bin/sh + +# pi -- interactive podcast downloader + +pc "$(pl "$@")" | +ep | +pd @@ -0,0 +1,14 @@ +#!/bin/sh + +# pl -- podcast list + +bw=https://feeds.buzzsprout.com/424075.rss +hhh=https://heretichappyhour.podbean.com/feed.xml +mm=http://www.myterochmysterier.se/feed/myterochmysterier/ +pvk=https://paulvanderklay.podbean.com/feed.xml +shearer=http://feeds.soundcloud.com/users/soundcloud:users:25261528/sounds.rss +storm=https://rss.acast.com/stormensutveckling +ts=https://rss.art19.com/thinkspot-presents +unb=https://unbelievable.podbean.com/feed.xml + +eval echo \$$1 |