Hello, I just discovered and downloaded last Magic Node... great script.
My first try with a mask found in this thread was :
Code: Select all
Best albums|child of:album\<album|sort by:avg(rating)|sort order:desc|all:yes|min tracks:7>
Unfortunately, I had an error, line 3737 column 24. I had a look to the script and just made a try changing the Locale to "en-us" before error and setting it back :
Code: Select all
If IsNumericLocale(CaptionPrefix) Then
SetLocale "en-us"
If CaptionPrefix >= 0 Then
SortCondition = Trim(vSortCond(iSortKey - 1))
sStatField = getSortField(SortCondition)
If StatFormatDict.Exists(sStatField) Then
CaptionPrefix = Eval(StatFormatDict.Item( _
sStatField) & "(""" & CaptionPrefix _
& """, True)")
ElseIf UCase(Left(SortCondition, 3)) = "AVG" Then
CaptionPrefix = FormatNumberInt(CaptionPrefix, _
DecimalsDict.Item(sStatField))
End If
newNode.Caption = CaptionPrefix & " - " _
& newNode.Caption
SetLocale "fr-FR"
And now it works. Of course, this is really not clean, and same problem might be somewhere else... Strange that I'm the first guy with this behaviour. Am I doing something wrong ?
By the way, sorting only works for me with album art display. The detailed wiew is not sorted anymore with this mask. Any clue ?
Thanks a lot and sorry for my poor english.