Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make each song its own file #38
Each song is a slugified artist-track YAML file in the songs directory, containing artist, track and url keys. Should simplify pull requests for adding songs.
There is a TODO in the Songs class, I thought I'd let you decide what to do in the case that the requested data file doesn't exist.
Good stuff, very similar to how I was going to implement this.
I'd lean towards keeping the artist / title split in the slug rather than concatenating with a hyphen -
If people want to play around with different formats for the song files, here's a converter that takes the current songs.rb and spits out .yml files.