More > JRiver Media Center 31 for Windows
revisiting album average rating-taking into account non rated tracks
lepa:
variables live-solutions here.... It might be overwhelming at start ;D
https://yabb.jriver.com/interact/index.php/topic,72049.0.html
zybex:
Also try running these 2 commands to sign the executable:
--- Code: ---chmod +x ./ZStats-osx-arm64
codesign --force --deep -s - ./ZStats-osx-arm64
--- End code ---
Not sure if "codesign" is available by default on MacOS.
Source: https://github.com/dotnet/runtime/issues/79267#issuecomment-1342976630
zeltak:
fantastic
i made it executable and signed it and it works!! this is so freaking cool, you just made my week with Zstats available on the mac :)
ok so im trying to follow your guide to get the album ratings as instructed using Zstats.
i configured the ini file and added my user/pass and the config
--- Code: ---UpdateStats=0 # 1 to update stats as defined in [Stats] sections, 0 to disable
UpdatePlaylists=1 # 1 to enable playlist processing, 0 to disable
RunExpressions=1 # 1 to execute [RunBefore] and [RunAfter] expression, 0 to disable
CreateFields=1 # 1 to create missing output fields, 0 to disable (allow only update)
[RunAfter]
#setField(Stats Updated, formatdate(now(),%c))
setfield(AlbumRating, FormatNumber(ListMath(FieldQuery(Artist - Album /(Year/), [Artist - Album (Year)], RatingOr1, 1, 1),3),1))
--- End code ---
also created 2 new fields in the MC library
The RatingOr1
https://share.cleanshot.com/2PHfrD89
and the AlbumRating field
https://share.cleanshot.com/rM4sR5ld
now i re-ran Zstats which seemed to run but nothing was written to the tags?
--- Code: ---zeltak@Itais-MBP:~/bin/ > ./ZStats-osx-arm64
ZStats v1.2.0 for JRiver MediaCenter, by Zybex
Reading config file: zstats.ini
Connecting to http://127.0.0.1:52199/MCWS/v1/
Connected to JRiver Media Center 32.0.58 on Itai’s Macbook Pro
Reading file list
33511 files read
Checking fields
history field [Play History] does not exist
Finished in 00:00:00
--- End code ---
im sure i missed a step :)
thx so much again
Z
zybex:
It's complaining that [Play History] field does not exist because you didn't disable the UpdatePlaylists setting.
Change it on the .ini file, as you only want to execute the expression:
--- Code: ---UpdateStats=0 # 1 to update stats as defined in [Stats] sections, 0 to disable
UpdatePlaylists=0 # 1 to enable playlist processing, 0 to disable
RunExpressions=1 # 1 to execute [RunBefore] and [RunAfter] expression, 0 to disable
CreateFields=0 # 1 to create missing output fields, 0 to disable (allow only update)
--- End code ---
zybex:
Maybe you can make it run 10x faster ... since all files on the same Album will have the same AlbumRating, you can try this to process each album just once:
- change the [AlbumRating] to a relational field with "store one value for each Album"
- change the MCFilter setting in ZStats.ini to only process Track #1 of each album:
MCFilter=[Track #]=1
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version