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
- Host: GitHub
- URL: https://github.com/jsdf/podcastgen
- Owner: jsdf
- License: mit
- Created: 2014-04-14T16:42:34.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-03T23:58:29.000Z (over 11 years ago)
- Last Synced: 2025-04-15T03:02:47.419Z (about 1 year ago)
- Language: CoffeeScript
- Size: 143 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```