Apply custom filtering to dynamic content?
#76
That should work out of the box:
Code:

plugin://script.embuary.helper/?info=getbyargs&filter_args='"{"and": [{"or": [{"operator": "is", "field": "actor", "value": $ESCINFO[Container(90050).ListItemAbsolute(0).Label]},{"operator": "is", "field": "actor", "value": $ESCINFO[Container(90050).ListItemAbsolute(1).Label]},{"operator": "is", "field": "actor", "value": $ESCINFO[Container(90050).ListItemAbsolute(3).Label]}]}, {"operator": "isnot", "field": "title", "value": $ESCINFO[ListItem.Title]}]}"'&type=movie
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#77
if you have issues it's always save to urlencode it.

Edit:
Tested and can confirm that you have to urlencode it for some what ever reasons. Anyway. Works as it should
Code:
plugin://script.embuary.helper/?info=getbyargs&filter_args=%7B%22and%22%3A%20%5B%7B%22or%22%3A%20%5B%7B%22operator%22%3A%20%22is%22%2C%20%22field%22%3A%20%22actor%22%2C%20%22value%22%3A%20%22$INFO[Container(200).ListItem.Label]%22%7D%2C%7B%22operator%22%3A%20%22is%22%2C%20%22field%22%3A%20%22actor%22%2C%20%22value%22%3A%20%22$INFO[Container(200).ListItem(1).Label]%22%7D%2C%7B%22operator%22%3A%20%22is%22%2C%20%22field%22%3A%20%22actor%22%2C%20%22value%22%3A%20%22$INFO[Container(200).ListItem(2).Label]%22%7D%5D%7D%2C%20%7B%22operator%22%3A%20%22isnot%22%2C%20%22field%22%3A%20%22title%22%2C%20%22value%22%3A%20%22$INFO[ListItem.Label]%22%7D%5D%7D&type=movie
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#78
(2019-09-03, 16:16)sualfred Wrote: if you have issues it's always save to urlencode it.

Edit:
Tested and can confirm that you have to urlencode it for some what ever reasons. Anyway. Works as it should
Code:
plugin://script.embuary.helper/?info=getbyargs&filter_args=%7B%22and%22%3A%20%5B%7B%22or%22%3A%20%5B%7B%22operator%22%3A%20%22is%22%2C%20%22field%22%3A%20%22actor%22%2C%20%22value%22%3A%20%22$INFO[Container(200).ListItem.Label]%22%7D%2C%7B%22operator%22%3A%20%22is%22%2C%20%22field%22%3A%20%22actor%22%2C%20%22value%22%3A%20%22$INFO[Container(200).ListItem(1).Label]%22%7D%2C%7B%22operator%22%3A%20%22is%22%2C%20%22field%22%3A%20%22actor%22%2C%20%22value%22%3A%20%22$INFO[Container(200).ListItem(2).Label]%22%7D%5D%7D%2C%20%7B%22operator%22%3A%20%22isnot%22%2C%20%22field%22%3A%20%22title%22%2C%20%22value%22%3A%20%22$INFO[ListItem.Label]%22%7D%5D%7D&type=movie

@sualfred, thanks! I will do it this way. I tried without url encoding and it worked, except for movies with & and ‘ in the title, which threw a plugin error in the log.

Regards,

Bart
Reply
#79
@sualfred, thank you, it works as expected.

Regards,

Bart
Reply
#80
np
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Apply custom filtering to dynamic content?00