cryogen-core/src/cryogen_core
Randall Mason 03cfabcbb9 Add enclosure tag to facilitate Podcasting with Cryogen
Add an enclosure tag to a post's metadata to let a podcast client
to deliver your audio content.  It should look like this:

:enclosure [{:url "<full-url>"}]

Without the brackets, you end up with NullPointerExceptions, so
make sure you have that.

The URL should be the full location of where the audio file is
hosted (not relative), so for example:

:enclosure [{:url "http://www.example.com/01_episode_IV.mp3"}]

I created a bunch of markdown files with just the enclosure and
info about the audiobook with the following bash snippet:

find -L books -type f -iname "*mp3" | sort | while read mp3; do name=$(basename $mp3 .mp3); book=$(basename "$(dirname $mp3)"); echo "{:title \"$name\"\n:layout :post\n:tags [\"audiobooks\" \"$book\"]\n:enclosure [{:url \"http://clashthebunny.mason.ch/blog/$mp3\"}]}\n $book - $name\n==================" > md/posts/"$(date "+%Y-$name").md"; done

Each book was in it's own subdirectory of books:
books/Dracula/1-01-Chapter1_part01.mp3
books/Dracula/1-02-Chapter1_part02.mp3
books/Dracula/2-01-Chapter2_part01.mp3

Note that the above script requires the prefix of the episode to
be "date-like".  It should be fairly easy to work out a way to get
your podcast up and running.

Add the book names to your rss-filters array, e.g.:
["Dracula" "Pride & Prejudice"]

Most podcasting clients support authentication, so just password
protect those directories and you should be good to go, even
if you are hosting copyrighted content.
2015-09-03 11:27:55 -05:00
..
compiler.clj Add enclosure tag to facilitate Podcasting with Cryogen 2015-09-03 11:27:55 -05:00
github.clj Renamed to cryogen-core 2014-12-05 10:56:40 -05:00
io.clj Cleanup + fixes for config based themes 2015-06-14 11:16:35 -04:00
markup.clj updated to use parser modules 2015-01-14 20:49:51 -05:00
plugins.clj updated to use init function to load plugins 2015-01-14 22:07:51 -05:00
rss.clj Add enclosure tag to facilitate Podcasting with Cryogen 2015-09-03 11:27:55 -05:00
sass.clj Run SASS relative to sass/ 2015-02-21 23:36:20 +00:00
sitemap.clj Support :ignored-file config key 2014-12-27 02:47:55 -05:00
toc.clj Added option for post preview pages rather than a single index page. Issue #28 2015-07-08 16:34:39 -04:00
watcher.clj Use checksums instead of last modified times. 2015-01-02 00:21:21 -05:00