Matt Baer
d7498ac64b
Remove superfluous embed import in render.go
2 лет назад
Matt Baer
d49fde1263
Clean filenames without track numbers
Previously, we'd fail if files had no numbers. Now this ignores and
continues anyway.
2 лет назад
Matt Baer
48ff27f671
Fix Previous Track logic from track 2 -> 1
2 лет назад
Matt Baer
691f266b08
Support MediaSession API
- Responds to next / previous track events
- Sets metadata for the currently-playing track
2 лет назад
Matt Baer
16e4510d9d
Use Go's embed pkg instead of inline tool
This moves the minimum requirements to Go 1.16 to build this project.
2 лет назад
Matt Baer
827bb0d0a2
Use Go modules
2 лет назад
Matt Baer
cf9eb20421
Fix `go get` command in README
3 лет назад
Matt Baer
b952bbfbc4
Fix playlist with links in track notes
4 лет назад
Matt Baer
d3782204fe
Remove more characters from names
4 лет назад
Matt Baer
b7e276966b
Add README
4 лет назад
Matt Baer
c71c124bcb
Fix site on mobile
plus set charset = UTF-8
4 лет назад
Matt Baer
177f73cb49
Support additional track info in playlist
This allows the user-defined mixtape.tmpl to define track notes for each
individual track. By default, it only shows notes for the
currently-playing track.
4 лет назад
Matt Baer
9a8150b144
Support next / previous track controls in JS
4 лет назад
Matt Baer
001589772c
Skip renaming tracks with errors
4 лет назад
Matt Baer
de090b9b8f
Split player template from playlist
4 лет назад
Matt Baer
bcd4094f09
Log parse and render errors
4 лет назад
Matt Baer
ac510fa586
Make clean command more descriptive
4 лет назад
Matt Baer
2dfe0ec236
Transliterate track info to ASCII on clean
4 лет назад
Matt Baer
8585514558
Reorganize mixtape.tmpl CSS
4 лет назад
Matt Baer
52749656f2
Add Num field to Track
4 лет назад
Matt Baer
82650d00ae
Support setting server port with PORT env var
This also logs the address the application is serving on.
4 лет назад
Matt Baer
a28732063f
Add LICENSE
4 лет назад
Matt Baer
ce6fec195a
Fix return vals in NewTrack()
4 лет назад
Matt Baer
ef54c10c9d
Fall back to default mixtape template
if there is no mixtape.tmpl in the destination directory.
4 лет назад
Matt Baer
2246bed69b
Add static site generation
Run `cdr burn` to create an index.html file in the current directory.
4 лет назад
Matt Baer
79db8a0cd1
Fix file scanning error condition
4 лет назад
Matt Baer
f0aa182c03
Add cdr `preview` subcommand
This serves the mixtape site by running `cdr preview`
4 лет назад
Matt Baer
c26beff32d
Add mixtape templates
4 лет назад
Matt Baer
3125d14d23
Move track information into struct
This adds a NewTrack func that creates the struct, and we now use this in RenameTrack().
4 лет назад
Matt Baer
97c9e0d14f
Move work to `clean` subcommand
4 лет назад
Matt Baer
29d369f5ae
Rename all files in current directory
Instead of taking a filename as an argument, we now change all files in the current directory.
4 лет назад
Matt Baer
f5e71f5a15
Add basic file renaming utility
4 лет назад