Creating this new branch to address the serious problems that there are with flatfile storage. Switching to sqlite. Should decrease loading times and make the site quite a bit more responsive.
It's alive! Seriously though, this is a Frankenstein of shitty PDO and our existing JSON system. I plan to rewrite most of this stuff to properly accommodate the DB over the holiday season.
Ignore test folder
Implement some more sql functionality
Fix config directory separators
Update list, song and js to conform with new sql results
Populate sql id3 data when building playlists, never on web requests.
Remove debug log
Should only clear genre column if there is actually one specified in the json
Ensure content-type is set before echoing
This really should be set for the album art fetching portion
Rename id3utils.php to cache_util.php 'cause that's really what it is.
Implement search endpoint
Do some redirects instead of handling the file with PHP. NGINX is better at this sort of thing than PHP is.
md5 consistency
Caching API responses is a good idea in this case.
Add autoplay param to song URL. Pretty much if it's not null it will be true.
Should probably make this actually work, instead of just looking like it works. Sometimes non-jQuery solutions work better.
Better truthiness
Well that was a stupid mistake that took far too long to debug...