I ported the HTML/JS logic from
thebaer's cdr project into a much simpler bash "template" system.
- HTML 92.5%
- Shell 7.5%
| themes | Add currently playing indicator | |
| playlist.sh | Use themes instead, add instructions, add custom theme | |
| README.md | Add currently playing indicator | |
ShMixtape
If you want to share a mix of cool tunes your friends like, you can pile all your MP3's in a folder, run this shell script, make the output into a git repo and shove it up to share it. 👌 👌 👌
- It autoplays the next track when one ends
- It continues to play when display is off or browser is not current app on iOS
- It works on things like Github Pages, Codeberg Pages, etc.
Make a mixtape
- Make a folder full of
mp3files. The files will be sorted alphabetically, so make them zeropadded numbers to be simple (e.g.00 - My leg - Boobooand01 - Scrumm - What?). - Run
playlist.shwith the specified arguments (run./playlist.sh --helpfor more information). - Check your target folder for an
index.htmlfile.
Themes
You can customize your playlist using a premade theme that is present in the themes folder. You can open them for a preview before running the script.
You can also make and add your own themes by copying the default theme, saving it as a new file, and using that when invoking the playlist file. You can customize anything within the theme files as long as the template strings remain (i.e. anything that is surrounded by two percent signs, like %%TITLE).
Todos
- Make JS logic separate so it doesn't have to be redefined in every theme.