The sorting is done via natcasesort PHP function: https://www.php.net/manual/en/function.natcasesort.php I had previously made the player fixed to the top of the page via CSS and that is included in the new 2.0.6 release, but allowing it to keep playing while navigating other directories would be a pretty big redesign that I can't take on right now. Thinking briefly about it, the player and its scripts and styles would need to be separated into a different PHP file and loaded in an iframe. All of...
I have had some other minor changes in progress in my local copy for years and took this as an opportunity to wrap them up in a new release. I have incorporated a case insensitive image file search. Someone else had asked for PNGs to be supported as well. It now checks for folder.jpg, cover.jpg, [track name].jpg, then those files again as PNGs, then if still not found, does a loop through looking for them again as case insensitive. I don't normally have the album art option enabled, because I usually...
Too many sub-folders breaks randomize
Too easy! New release 2.0.4 has it.
In my quick testing here, the first time I tried to do a random playlist on the parent music folder, the process eventually gave up, after processing a long time. PHP is configured to not show errors/warnings by default. Checking the error.log file showed "PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/mlp/functions.php on line 162". When I refreshed the page, it worked immediately. To be fair, I don't have anywhere near 500 folders. Take a look in the PHP error log...
No problem, I'm glad that fixed it. I'm working on a quick and dirty update to make the deep parsing optional. Doesn't really affect random playlists, since those naturally do the same kind of thing, but everything else speeds up quite a bit.
In my quick testing here, the first time I tried to do a random playlist on the parent music folder, the process eventually gave up, after processing a long time. PHP is configured to not show errors/warnings by default. Checking the error.log file showed "PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/mlp/functions.php on line 162". When I refreshed the page, it worked immediately (all the files/folders are supposed to be cached in $SESSION variables so it doesn't...
Interesting. I will check it out. Thanks!