An open API service indexing awesome lists of open source software.

https://github.com/jsdf/podcastgen

generate itunes-compatible podcasts from cson or json
https://github.com/jsdf/podcastgen

Last synced: about 1 year ago
JSON representation

generate itunes-compatible podcasts from cson or json

Awesome Lists containing this project

README

          

# podcastgen

generate itunes-compatible podcasts from cson or json

## example

`example/jsdfpodcast.cson`:
```coffee
title: "jsdf podcast",
baseUrl: "http://files.ktfr.net/podcast/",
podcastUrl: "http://files.ktfr.net/podcast/podcast.xml",
items: [
{
title: "cashmere cat mix",
path: "cashmere.mp3", # relative from baseUrl
date: "Mon, 3 Mar 2014 00:00:00 +1100", # RFC 2822 formatted date
},
{
title: "jacques greene mix",
path: "LWEPodcast198JacquesGreene.mp3",
date: "Mon, 14 Apr 2014 00:00:00 +1100",
}
]
```

run it:
```bash
podcastgen example/jsdfpodcast.cson > podcast.xml
```

`podcast.xml`:
```xml


jsdf podcast

cashmere cat mix


Mon, 3 Mar 2014 00:00:00 +1100
http://files.ktfr.net/podcast/cashmere.mp3


jacques greene mix


Mon, 14 Apr 2014 00:00:00 +1100
http://files.ktfr.net/podcast/LWEPodcast198JacquesGreene.mp3

```

### api usage
```coffee
podcastgen = require 'podcastgen'

rssdata = podcastgen({
title: "my podcast",
baseUrl: "http://example.com/podcast/",
...
})
```

### install

```bash
npm install -g podcastgen
```