More > JRiver Media Center 26 for Windows
NEW: ItemCount(...) expression
RoderickGI:
Yes, it does make sense, but I think I need to try it out to get it to sink in.
But then the "ItemCount(AlbumKey() - [Disc #])" example doesn't make sense, because "AlbumKey() - [Disc #]" would be evaluated before being passed. Maybe you meant to put escape characters in that example?
Matt:
--- Quote from: RoderickGI on September 25, 2019, 08:40:19 am ---But then the "ItemCount(AlbumKey() - [Disc #])" example doesn't make sense, because "AlbumKey() - [Disc #]" would be evaluated before being passed. Maybe you meant to put escape characters in that example?
--- End quote ---
Yes, they need to be escaped. That was Matt typing at home on his phone! Sorry!
Moe:
Thanks a lot for implementing this Matt. I think this is going to be very useful.
ferday:
i had written a global function to count tracks and auto populate # tracks
this works great, and much simpler - the syntax is wild though, the escape characters are in odd spots to me
nice one Matt, highly useful
Moe:
Matt, I am trying to do what I think would be a simple task but I am not having any luck. I'd like to find how many seasons of a show I have. I was hoping that something like
--- Code: ---ItemCount(/[series/]/[season/])
--- End code ---
Would do it, but that just returns how many episodes I have for that show. I understand why it's doing that, but it's not the behavior I was hoping for. To find the number of episodes I would have thought it would be something like
--- Code: ---ItemCount(/[series/]/[episode/])
--- End code ---
Which also does return the number of episodes.
So, I have a request. Would it be possible to add a mode to this function? Something like mode 0, count all files that match the given values. Mode 1, count all unique values that match the given values.
So, if I have a show that has two seasons, each season has 10 episodes
--- Code: ---ItemCount(/[series/]/[season/],0)
--- End code ---
Would return 20
--- Code: ---ItemCount(/[series/]/[season/],1)
--- End code ---
Would return 2
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version