INTERACT FORUM
More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: pgrisham on January 03, 2014, 10:00:38 am
-
I have asked and received help in the past (from the forum, of course :) ) on a rule to display pictures that only contain my 2 daughters and no one else. I call this smartlist rule 'sisters' as I intend to use it as a slideshow for them in the future. My problem is that now I have noticed that it only shows pictures through 2008. I have checked my other smartlists, and most of them, but not all, also do this. Can someone please help me tweak this to make it update? I have tried adding a modifier for years, or date, or the like...nothing does the trick. All of my smartlists simply have either 1 or 2 lines depending on how many people I am displaying. If they're this simple, how is this not working??
Here is my sample rule for 2 people:
([=isequal([people],a;r,1)]=1 or [=isequal([people],r;a,1)]=1)
This shows up as 2 lines in the smartlist edit window, by the way.
-
I think I found my answer. For some reason, I have another version of this rule which I'll list below. I guess I had this problem in the past and didn't remember working on it (?). I see on different places that the expressions capabilities is considered an intermediate level thing, but I must say I would put this kind of stuff in the advanced field for sure...I still have NO IDEA why the original rule only works through certain years.
This one is for 3 people:
+[People]=[d],[p],[chet] [=Compare(listcount([People], ;),=,3)]=1 [Filename (path)]=[M:\Pictures" ~sort=[Date]-d
-
At some point in MC, spaces were added after semicolon's for nicer formatting. This would have broken your initial rules where you are comparing against "a;r" instead of "a; r".
Using the +[People] form of query is the better way to handle this.
Do you really need the Compare custom query, since the IS ALL binder (+) requires each of [d], [p], and [chet], and that would automatically be three people?
-
I would love to be able to answer your question, but the smartlist language is way beyond me :). I can generally make sense of what I see, but I can't imagine figuring out anything past the most basic of expressions. Thanks for your help. It seems like a bad idea to make fundamental changes to the expression language, as it could 'break' many of the existing expressions. I'm sure some people have worked many long hours setting up many useful rules. I'll assume the change was considered important enough to risk this...
-
I'll be more direct - I don't believe you need the Compare. This should be sufficient:
+[People]=[d],[p],[chet] [Filename (path)]=[M:\Pictures" ~sort=[Date]-d
You'll be happy to know that your post here caused me to realize I never documented the + syntax in Wiki page:
http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers (http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers)
-
I'll be more direct - I don't believe you need the Compare. This should be sufficient:
+[People]=[d],[p],[chet] [Filename (path)]=[M:\Pictures" ~sort=[Date]-d
You'll be happy to know that your post here caused me to realize I never documented the + syntax in Wiki page:
http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers (http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers)
I've added some documentation on the + ALL OF operator:
http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers#Negation_and_All (http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers#Negation_and_All)