12-20-2018, 09:49 PM
Hi Kent,
you're absolutely right concerning the creation of a loop. I just tested it. I was not aware of this.
I think the solution within the worker.php is the better one, at least it is easier to implement.
@Tim
Would it be possible that you add this one line to the worker.php? This way we would get the Symlink?
if (!file_exists('/var/www/cover')) {SysCmd('ln -s /var/lib/mpd/music /var/www/cover');}
As Kent pointed out, it should be in the section around line 242:
// ensure certain files exist
if (!file_exists('/var/www/cover')) {SysCmd('ln -s /var/lib/mpd/music /var/www/cover');}
if (!file_exists('/var/local/www/currentsong.txt')) {sysCmd('touch /var/local/www/currentsong.txt');}
Kind regards
Duke.G
you're absolutely right concerning the creation of a loop. I just tested it. I was not aware of this.
I think the solution within the worker.php is the better one, at least it is easier to implement.
@Tim
Would it be possible that you add this one line to the worker.php? This way we would get the Symlink?
if (!file_exists('/var/www/cover')) {SysCmd('ln -s /var/lib/mpd/music /var/www/cover');}
As Kent pointed out, it should be in the section around line 242:
// ensure certain files exist
if (!file_exists('/var/www/cover')) {SysCmd('ln -s /var/lib/mpd/music /var/www/cover');}
if (!file_exists('/var/local/www/currentsong.txt')) {sysCmd('touch /var/local/www/currentsong.txt');}
Kind regards
Duke.G
1x RPi 3B, 1x RPi 4, 1x RPi 5, Moode 9; 6k flac Songs; 180k MP3 Songs; Asset-UpnP 186k Songs
The blues has got a hold of me, I believe I'm gettin' dizzy - ZZ Top