Album List View script regressions
2025-04-14 21:59:39
Hello, I'm currently trying to upgrade to 2.24.3 from my ancient 1.6.5 installation and am running into a whole host of issues around Album List views. I have a somewhat complicated script to configure the album list view to my liking, and to keep things maintainable it includes comments and multiple lines. The first problem is that multi-line scripts get mangled together on safe, with newline characters being replaced with underscores. Original:$puts(X,%<genre>%) $get(X) Mangled version$puts(X, %<genre>%)__$get(X) Example result: __Electronic I can sort of work around this problem by wrapping everything in a $replace(<script>,_,) call, but it's a bit icky. The second related problem is that any comment in the script now becomes part of the output.$puts(X, %<genre>%) // foo $get(X) Example result: __// foo__Electronic Haven't found a workaround for that yet except removing the comments. These two alone would be manageable (just have a fancy canonical source in some text file and preprocess is before adding it in foobar), but there's also a third issue where after a certain complexity the whole script just stops working. I can test individual parts of the script, but combining everything together just ends up returning nothing. I'm wondering if there is come complexity limit that was implemented by just counting the total number of | in a script, instead of limiting the depth of any individual path. My script only creates at most 5 levels of depth for any particular song, but different categories of music have their own branches so a bunch of | are actually conditional. I could probably rewrite it to have less complex branching, but it'd be easier without the first 2 problems at the very least. Cheers, Shiren