Apply custom filtering to dynamic content?
#21
You can combine and + or via JSON so I guess that's also possible for xsp paths. But to remove the duplicates you have to cleanup that list afterwards. Via Python it's easy.

FYI: Untested combination of "and" + "or" in xsp

videodb://movies/titles/?xsp={"rules":{"and":[{"or":[{"operator":"is","field":"genre","value":["Action"]},{"operator":"is","field":"genre",["Adventure"]}]},{"operator":"isnot","field":"title","value":"Alien"}]},"type":"movies"}
edit2: doesn't work for xsp

Edit:
Why don't you use this? This doesn't return any duplicate.
Code:
videodb://movies/titles/?xsp={"rules":{"or":[{"field":"genre","operator":"is","value":["Action"]},{"field":"genre","operator":"is","value":["Thriller"]}]},"type":"movies"}

Edit3:
What exactly do you want to achieve? A "similar movies" widget based on a listitem?
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply


Messages In This Thread
RE: Apply custom filtering to dynamic content? - by sualfred - 2019-03-08, 07:34
Logout Mark Read Team Forum Stats Members Help
Apply custom filtering to dynamic content?0