A podcast server providing Radiru programs written in golang
All data processed by this program should be handled in accordance with the terms of use for Radiru https://www.nhk.or.jp/radio/info/kiyaku.html
-
Visit Radiru ProgramList, copy
site_id
for the program you want to follow. -
Edit
conf.yml
and declare podcast. Specify the copiedsite_id
as theid
of the podcast. (Optional) If you specifycorner_id
, the corner will be served as an independent podcast. Otherwise, all the corners in the site_id are served as a single podcast.
podcasts:
- id: 1633
- id: F295
corner_id: 29
This will make podcasts http://<host>:8080/audio/1633/feed.rss
and http://<host>:8080/audio/f295_29/feed.rss
- Run cmd/nhkpod/main.go by
make build && ./nhkpod
or your preferred method to run the go program. Otherwise, you can docker-compose them. That way you just make.env
then specify the podcast host.
NHKPOD_HOST=<your docker host>
Then docker-compose up
. The directory for audio files and feed.rss will be mounted to ./audio
as a docker volume.
-
Initially, it will download all the available audio files associated with the
site_id
andcorner_id
you've specified. -
Register url
http://<host>:8080/audio/<site_id>/feed.rss
orhttp://<host>:8080/audio/<site_id>_<corner_id>/feed.rss
on your podcast client.
Key | Description | Default |
---|---|---|
NHKPOD_SCHEDULE | schedule for audio file download & podcast feed update (cron style) | 35 * * * * |
NHKPOD_LOG_FILE | log file | log.log |
NHKPOD_AUDIO_DIR | audio & podcast feed directory | audio |
NHKPOD_CONF_PATH | configuration file path | conf.yml |
NHKPOD_PORT | port for podcast server | 8080 |
NHKPOD_HOST | host for podcast server | n/a |