https://github.com/borkdude/generate-podcast
A babashka script to create a podcast from a local directory with mp3 files
https://github.com/borkdude/generate-podcast
babashka clojure podcasts
Last synced: about 1 month ago
JSON representation
A babashka script to create a podcast from a local directory with mp3 files
- Host: GitHub
- URL: https://github.com/borkdude/generate-podcast
- Owner: borkdude
- License: epl-1.0
- Created: 2020-04-22T13:09:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T14:03:20.000Z (about 5 years ago)
- Last Synced: 2025-03-30T23:41:11.734Z (3 months ago)
- Topics: babashka, clojure, podcasts
- Language: Clojure
- Size: 482 KB
- Stars: 19
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate podcast
A [babashka](https://github.com/borkdude/babashka/) script to transform a
directory of mp3 files into an XML file that can be used to subscribe as a
podcast in iTunes (and possibly other music programs?).This is a great way to enjoy conference talks on your iPod or mobile phone.
## Usage
- Install [babashka](https://github.com/borkdude/babashka/).
- Place the script `generate_podcast.clj` somewhere on your path.- Create a directory with `.mp3` files. E.g. download [Clojure Conj
2019](https://www.youtube.com/watch?v=MnvtPzEH-d8&list=PLZdCLR02grLqSy15ALLAZDU6LGpAJDrAQ)
as mp3 files with [youtube-dl](https://github.com/ytdl-org/youtube-dl).``` shell
$ mkdir -p conj2019 && cd conj2019
$ youtube-dl -x --audio-format mp3 "https://www.youtube.com/watch?v=MnvtPzEH-d8&list=PLZdCLR02grLqSy15ALLAZDU6LGpAJDrAQ"
```- Start a local webserver in the mp3-files directory
``` shell
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
```- In another shell, generate the podcast file from inside the mp3-files directory:
``` shell
$ cd conj2019
$ generate_podcast.clj -h
generate_podcast.clj:-f --file FILE Podcast file to generate :default podcast.xml
-t --title TITLE Title for the podcast
-b --base-url URL Base URL of server
-h --help$ generate_podcast.clj -f conj2019.xml -b http://localhost:8000 -t "Clojure Conj 2019"
Written podcast for Clojure Conj 2019 at conj2019.xml
```- In iTunes, subscribe to the podcast: `File > Subscribe to podcast > http://localhost:8000/conj2019.xml`.
Happy listening!
## License
Copyright © 2020 Michiel Borkent
Distributed under the EPL License. See LICENSE.