![]() |
Moode 9, new webui's tag view album list and album is blank - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: Moode 9, new webui's tag view album list and album is blank (/showthread.php?tid=6537) |
RE: Moode 9, new webui's tag view album list and album is blank - Tim Curtis - 06-01-2024 Looks like the "encodedAt" tag was empty or not present for at least one Album in the library tag cache. This would be a possible bug in the server-side getEncodedAt() function in inc/music-library.php since it should always return something. To find out which album causes the JS crash place the console.log line below in /var/www/js/scripts-library.js right after the "for" statement on line 622. for (var i = 0; i < filteredAlbums.length; i++) { console.log(filteredAlbums[i]); filteredAlbums[i].year ? tagViewYear = '(' + filteredAlbums[i].year.toString().slice(0, 4) + ')' : tagViewYear = ''; Then repro the issue, find the last entry in the JS log which should be the one causing the crash and click it to display all the items for that album. Post the list or a screenshot. RE: Moode 9, new webui's tag view album list and album is blank - vinnn - 06-01-2024 There doesn't actually seem to be a /var/www/js/scripts-library.js file, looked on both Moode 8 and 9. RE: Moode 9, new webui's tag view album list and album is blank - Tim Curtis - 06-01-2024 My bad the js files are bundled and minified which makes local editing impossible. Lets see what can be done to log things in the server-side code. RE: Moode 9, new webui's tag view album list and album is blank - Tim Curtis - 06-01-2024 How many files are we talking about? RE: Moode 9, new webui's tag view album list and album is blank - grumbleweed - 06-01-2024 [attachment=3839] not sure if the log is useful, last entry doesn't have channel count listed, but its DSD and stereo and plays fine. Paul RE: Moode 9, new webui's tag view album list and album is blank - Tim Curtis - 06-01-2024 Here's what the section thats crashing in scripts-library.js does for a normally formatted encodedAt item which in this case is the var "tim". Code: tim = "FLAC 24/96,h,2"; If my analysis is correct then it looks like the server-side code is not able to determine either the format, rate or both for a particular file for example "24/96,h,2" or "FLAC,h,2" or ",h,2". These will all cause the JS line to crash. RE: Moode 9, new webui's tag view album list and album is blank - Tim Curtis - 06-01-2024 (06-01-2024, 02:09 PM)vinnn Wrote: There doesn't actually seem to be a /var/www/js/scripts-library.js file, looked on both Moode 8 and 9. (06-01-2024, 02:45 PM)grumbleweed Wrote: not sure if the log is useful, last entry doesn't have channel count listed, but its DSD and stereo and plays fine. Yes, that will also crash the JS line Code: tim = "DSD,h"; RE: Moode 9, new webui's tag view album list and album is blank - Tim Curtis - 06-01-2024 Should be easy to fix, prolly in the server-side code. I'll do some testing. RE: Moode 9, new webui's tag view album list and album is blank - vinnn - 06-01-2024 good news, Thanks Tim RE: Moode 9, new webui's tag view album list and album is blank - Tim Curtis - 06-02-2024 It turns out the bugs were in the front-end JS scripts. See the following commit. https://github.com/moode-player/moode/commit/1bb7cee8469d64fe1461ae9c693775efb2e23101 |