[SOLVED] /var/local/www/currentsong.txt may be stale - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8) +--- Thread: [SOLVED] /var/local/www/currentsong.txt may be stale (/showthread.php?tid=2924) |
/var/local/www/currentsong.txt may be stale - adrii - 08-31-2020 When Moode reboots /var/local/www/currentsong.txt is stale until the reboot process is complete, which can affect other programs that use this file and are running before the Moode startup has completed: http://moodeaudio.org/forum/showthread.php?tid=155&pid=24096#pid24096 Perhaps currentsong.txt could be deleted sometime early in the startup process, so it does not exist with invalid details for the full startup. Adrian. RE: /var/local/www/currentsong.txt may be stale - Tim Curtis - 08-31-2020 Sure no prob. How about if I truncate it to size 0 at the beginning of moOde startup? RE: /var/local/www/currentsong.txt may be stale - adrii - 08-31-2020 Hi Tim Thanks. Deletion should work with the current mpd_oled code, otherwise I will add an extra test for the empty file. Adrian. RE: /var/local/www/currentsong.txt may be stale - Tim Curtis - 09-01-2020 I ended up truncating the file. You can view the "Improve File check" commit in the repo https://github.com/moode-player/moode/commits/develop RE: /var/local/www/currentsong.txt may be stale - adrii - 09-01-2020 Hi Tim Thanks. Adrian. |