carpman
Mar 21 2008, 00:31
Hi all,
Need a bit of help. I'm trying to get a dynamic playlist that sorts on an auto-rating value. I've checked the autoplaylist wiki and have searched around, but all sort strings I've come across have, at their root, %tags% (often in combination with $ functions). The problem I have is that all I have is a column (in columns ui) that has a long formula that gives me an auto-updated value, and no %tags%.
How do I get autoplaylist to sort on that? Really I'd like to just tell autoplaylist the column name and say sort.
Any help greatly welcome and appreciated.
Thanks.
C.
buktore
Mar 21 2008, 01:16
Try shorten your code to fit a single line and paste the whole thing in the query or sort box.
I once done this with topdownjimmy's hotness code and it's work fine.
carpman
Mar 21 2008, 02:09
Thanks Buktore.
It's tricky. <edit>Though having just looked at the text file I see what you mean by one line (- a very long one line!) - Yes, I'll try to shorten all the $put names and see if that works. </edit>
The formula is 13 lines of $put statements followed by this:
$num($get(dar2),5)
I tried just this part (just to see) and I got a strange result, in that it looks like it's done the sort but on close inspection (at various points) the ratings go as follows:
01029
01026
01035
01025
01025
01025
....
01017
01018
01017
.....
So it looks like an attempt at sorting, and there is no kind of order in any of the other columns.
I don't know enough about Foobar or this component to know quite what it's doing.
It would be nice if there was a component that would take any column's output and make that either a real tag or a custom info / pseudo tag.
I'll keep trying to figure.
Thanks again.
C.
carpman
Mar 21 2008, 13:04
It worked !
I never thought that it would accept such a long formula!
Thanks again -- all nicely sorted and it'll make keeping a check on how the rating formula is doing much easier.
Cheers.
C.