{"action":"created","issue":{"url":"https://api.github.com/repos/cryogen-project/cryogen-core/issues/37","labels_url":"https://api.github.com/repos/cryogen-project/cryogen-core/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/cryogen-project/cryogen-core/issues/37/comments","events_url":"https://api.github.com/repos/cryogen-project/cryogen-core/issues/37/events","html_url":"https://github.com/cryogen-project/cryogen-core/pull/37","id":104737449,"number":37,"title":"Add enclosure tag to facilitate Podcasting with Cryogen","user":{"login":"ClashTheBunny","id":248361,"avatar_url":"https://avatars.githubusercontent.com/u/248361?v=3","gravatar_id":"","url":"https://api.github.com/users/ClashTheBunny","html_url":"https://github.com/ClashTheBunny","followers_url":"https://api.github.com/users/ClashTheBunny/followers","following_url":"https://api.github.com/users/ClashTheBunny/following{/other_user}","gists_url":"https://api.github.com/users/ClashTheBunny/gists{/gist_id}","starred_url":"https://api.github.com/users/ClashTheBunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClashTheBunny/subscriptions","organizations_url":"https://api.github.com/users/ClashTheBunny/orgs","repos_url":"https://api.github.com/users/ClashTheBunny/repos","events_url":"https://api.github.com/users/ClashTheBunny/events{/privacy}","received_events_url":"https://api.github.com/users/ClashTheBunny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-03T16:47:53Z","updated_at":"2015-09-04T02:42:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cryogen-project/cryogen-core/pulls/37","html_url":"https://github.com/cryogen-project/cryogen-core/pull/37","diff_url":"https://github.com/cryogen-project/cryogen-core/pull/37.diff","patch_url":"https://github.com/cryogen-project/cryogen-core/pull/37.patch"},"body":"Add an enclosure tag to a post's metadata to let a podcast client\r\nto deliver your audio content.  It should look like this:\r\n\r\n`:enclosure [{:url \"<full-url>\"}]`\r\n\r\nWithout the brackets, you end up with `NullPointerExceptions`, so\r\nmake sure you have that.\r\n\r\nThe URL should be the full location of where the audio file is\r\nhosted (not relative), so for example:\r\n\r\n`:enclosure [{:url \"http://www.example.com/01_episode_IV.mp3\"}]`\r\n\r\nI created a bunch of markdown files with just the enclosure and\r\ninfo about the audiobook with the following bash snippet:\r\n\r\n```bash\r\nfind -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\r\n```\r\n\r\nEach book was in it's own subdirectory of books:\r\n* books/Dracula/1-01-Chapter1_part01.mp3\r\n* books/Dracula/1-02-Chapter1_part02.mp3\r\n* books/Dracula/2-01-Chapter2_part01.mp3\r\n\r\nNote that the above script requires the prefix of the episode to\r\nbe \"date-like\".  It should be fairly easy to work out a way to get\r\nyour podcast up and running.\r\n\r\nAdd the book names to your rss-filters array, e.g.:\r\n`[\"Dracula\" \"Pride & Prejudice\"]`\r\n\r\nMost podcasting clients support authentication, so just password\r\nprotect those directories and you should be good to go, even\r\nif you are hosting copyrighted content."},"comment":{"url":"https://api.github.com/repos/cryogen-project/cryogen-core/issues/comments/137631143","html_url":"https://github.com/cryogen-project/cryogen-core/pull/37#issuecomment-137631143","issue_url":"https://api.github.com/repos/cryogen-project/cryogen-core/issues/37","id":137631143,"user":{"login":"lacarmen","id":8739864,"avatar_url":"https://avatars.githubusercontent.com/u/8739864?v=3","gravatar_id":"","url":"https://api.github.com/users/lacarmen","html_url":"https://github.com/lacarmen","followers_url":"https://api.github.com/users/lacarmen/followers","following_url":"https://api.github.com/users/lacarmen/following{/other_user}","gists_url":"https://api.github.com/users/lacarmen/gists{/gist_id}","starred_url":"https://api.github.com/users/lacarmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacarmen/subscriptions","organizations_url":"https://api.github.com/users/lacarmen/orgs","repos_url":"https://api.github.com/users/lacarmen/repos","events_url":"https://api.github.com/users/lacarmen/events{/privacy}","received_events_url":"https://api.github.com/users/lacarmen/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T02:42:32Z","updated_at":"2015-09-04T02:42:32Z","body":"A specific tag's RSS feed is just tag-name.xml. For example, my main feed on my blog is http://carmenla.me/blog/rss.xml but my Clojure specific one is http://carmenla.me/blog/clojure.xml. (I think this is what you're talking about in your first point?)\r\n\r\nI think the tag stuff will have to be done in clj-rss since you mentioned the podcast tags aren't in the accepted list.\r\n\r\nI don't have any test for Cryogen but maybe I should consider it. I'm not sure how much the project would benefit from tests since a lot of the features that get added haven't been things that risk breaking pre-existing functionality."}}