Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: Library Tree Discussion (Read 53621 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Library Tree Discussion

Reply #300
You really shouldn't bother with a JSP version. As mentioned a few posts up, newer versions of JSP require windows 7 just like SMP so all users of your scripts should be on SMP by now. Even the Georgia theme has a SMP version now (currently beta but should be released fully soon).


Re: Library Tree Discussion

Reply #301
Just had this script crash (see below). I'm using 1.4.2 of SMP.

Error: Spider Monkey Panel v1.4.2-dev+5fa2496a (Library Tree: Library Tree v2.1.3 by WilB)
lib.node[v] is undefined

File: Library Tree 2.1.3.js
Line: 1635, Column: 11
Stack trace:
  Populate/this.buildTree/</<@Library Tree 2.1.3.js:1635:11
  Populate/this.buildTree/<@Library Tree 2.1.3.js:1634:23
  Populate/this.buildTree@Library Tree 2.1.3.js:1628:12
  Populate/this.buildTree/<@Library Tree 2.1.3.js:1647:42
  Populate/this.buildTree@Library Tree 2.1.3.js:1628:12
  Populate/this.branch@Library Tree 2.1.3.js:1570:14
  expandCollapse@Library Tree 2.1.3.js:2012:10
  Populate/this.lbtn_dn@Library Tree 2.1.3.js:2049:26
  on_mouse_lbtn_down@Library Tree 2.1.3.js:2889:192

Re: Library Tree Discussion

Reply #302
I wasn't able to reproduce the issue. You can try replacing lines 1632-1639 with the following, which ought to fix it.
Code: [Select]
switch (true) {
case l != -1 && !showTracks:
range(item.item).some(v => {
if (lib.node[v] && (lib.node[v].length == l + 1 || lib.node[v].length == l + 2)) return item.track = true;
});
break;
case l == 0 && lib.node[item.item[0].start] && lib.node[item.item[0].start].length == 1: item.track = true; break;
}
Else the fix will be in the next version.

Thanks for reporting.

Re: Library Tree Discussion

Reply #303
Not sure if it's feasible, but a reverse sorting function specifically for the date field would be nice. I wish to be able to sort albums chronologically in order of newest to oldest.

Re: Library Tree Discussion

Reply #304
You can use $nodisplay:

$nodisplay{X} Sorts & groups by X without display of X

For example, the following sorts latest albums first & displays the date.
Code: [Select]
%artist%|$nodisplay{$sub(99999,%date%)}%album%[ '['%date%']']|%tracknumber%. %title%
The next version has embedded extended syntax help + a proper manager for views & filters, so doing things like this should be easier. It should also satisfy requests for integrated thumbnail support and is planned to include an optional 2 panel mode...

Re: Library Tree Discussion

Reply #305
You can use $nodisplay:

$nodisplay{X} Sorts & groups by X without display of X

For example, the following sorts latest albums first & displays the date.
Code: [Select]
%artist%|$nodisplay{$sub(99999,%date%)}%album%[ '['%date%']']|%tracknumber%. %title%
The next version has embedded extended syntax help + a proper manager for views & filters, so doing things like this should be easier. It should also satisfy requests for integrated thumbnail support and is planned to include an optional 2 panel mode...

Thanks very much! I wasn't aware of such a syntax. Looking forward to the next version.

 
SimplePortal 1.0.0 RC1 © 2008-2021