More > JRiver Media Center 31 for Windows

revisiting album average rating-taking into account non rated tracks

<< < (8/8)

zeltak:
wow!!! so ..freaking awesome :)

you are a rock star @zybex :)

a few smalish related questions (see results screenshot below)

1. I assume i can define the round up precision in zstat to be 0.1 and not 0.001 as is currently (ie round to 1 decimal?)
2. When you run zstat it seems to fo over all 40k tracks. is that normal or should it only go over modified tracks?
3. this may be out of the scope of this thread :) but i saw you can create a list and converst the score to stars for presneting, something like this

--- Code: ---<font alpha="35">ListBuild(1, / • ,RemoveRight(GroupSummary(Duration),6), listitem(;½;★;★½;★★;★★½;★★★;★★★½;★★★★;★★★★½;★★★★★, math(If(IsEqual(GroupSummary(Rating), avg, 8), RemoveRight(GroupSummary(Rating),4), GroupSummary(Rating)) * 2)))<//font>

--- End code ---


would this work with the albumrating generated from Zstat?

thx so much again!! its so much fun to play arounbd with Zstat

PS do you think the jriver folk will ever include these calculation nativly?

Z



zybex:

--- Quote from: zeltak on January 23, 2025, 05:09:32 pm ---1. assume i can define the round up precision in zstat to be 0.1 and not 0.001 as is currently (ie round to 1 decimal?)

--- End quote ---
FormatNumber(GroupSummaryQuery(Artist - Album /(Year/), Rating, 1), 1)


--- Quote ---2. When you run zstat it seems to go over all 40k tracks. is that normal or should it only go over modified tracks?

--- End quote ---
It's normal, but you can also modify the expression so that it calculates only for recently modified tracks. This calculates only for files modified in the last 7 days:
if(compare(Math(int(now()-[Date Modified,0])),<,7),
  setfield(AlbumRating, FormatNumber(GroupSummaryQuery(Artist - Album /(Year/), Rating, 1), 1))
,)


--- Quote ---3. this may be out of the scope of this thread :) but i saw you can create a list and converts the score to stars for presenting, (...)
would this work with the albumrating generated from Zstat?

--- End quote ---
You can just change the Edit Type of the AlbumRating field to 'five stars' in the field definition. Then it behaves like the regular Rating field.

zeltak:
perfect thx so much!! you rock as always :)

zeltak:
Hi @zybex

how are you?

im trying to cron ZStats every night but have an issue.

When running from a script it doesent seem to find the ini file. when im trying to specify it directly it still does not work. see:

```
#!/bin/bash
/Users/zeltak/Documents/bin/ZStats-osx-arm64 /Users/zeltak/Documents/bin/zstats.ini
```

any clue what im doing wrong?

thx!

Z

zybex:
Maybe file/folder permissions? The Cron job likely runs as a different user. I think you can specify your username for the job.

Navigation

[0] Message Index

[*] Previous page

Go to full version