Kodi Community Forum

Full Version: Multiple tag filter sort?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Looked this up but couldn't find anything.

I have my foreign films tagged as "foreign". From those I also tagged some with "Friend Needs to Watch". I'm hoping to filter both of these tags, so I just have those foreign films that my friend needs to see show up. But it seems to pull up all foreign films! I would think using multiple tag filters, it only shows the results that match ALL the TAGS selected.
Try the node or playlist below

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<node order="1" type="filter" visible="True">
       <label>For My Friends</label>
       <icon>DefaultMovies.png</icon>
       <content>movies</content>
       <match>all</match>
           <rule field="tag" operator="is">
               <value>foreign</value>
           </rule>
           <rule field="tag" operator="is">
               <value>Friend Needs to Watch</value>
           </rule>
      <order direction="ascending">title</order>
</node>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
</smartplaylist type="movies">
      <name>For My Friends</name>
       <match>all</match>
           <rule field="tag" operator="is">
               <value>foreign</value>
           </rule>
           <rule field="tag" operator="is">
               <value>Friend Needs to Watch</value>
           </rule>
      <order direction="ascending">title</order>
</smartplaylist>
(2020-08-11, 20:13)LongMan Wrote: [ -> ]Try the node or playlist below

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<node order="1" type="filter" visible="True">
       <label>For My Friends</label>
       <icon>DefaultMovies.png</icon>
       <content>movies</content>
       <match>all</match>
           <rule field="tag" operator="is">
               <value>foreign</value>
           </rule>
           <rule field="tag" operator="is">
               <value>Friend Needs to Watch</value>
           </rule>
      <order direction="ascending">title</order>
</node>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
</smartplaylist type="movies">
      <name>For My Friends</name>
       <match>all</match>
           <rule field="tag" operator="is">
               <value>foreign</value>
           </rule>
           <rule field="tag" operator="is">
               <value>Friend Needs to Watch</value>
           </rule>
      <order direction="ascending">title</order>
</smartplaylist>

Ok, I'm not familiar with nodes or playlists on tmm, what do I do with that text exactly?
How were you filtering the movies. What you are attempting is usually done with Nodes or Smart Playlists.
So the problem is the filter box treats all selected items within a single category as "or" rather than "and" whereas it treats different selected categories as "and".
It could offer a more complicated rule definition dialog, but one easy solution would be to add "+" icon at the end of each category and if the user wants "and" rule for some items within the same category, just click the + button and select items in an additional box for "and".

For instance,

Image

would mean (china "or" japan) "and" (short).
(2020-08-11, 20:48)LongMan Wrote: [ -> ]How were you filtering the movies. What you are attempting is usually done with Nodes or Smart Playlists.

I was using filter in tmm, not kodi, just like tars mentioned.
(2020-08-12, 09:07)tars Wrote: [ -> ]So the problem is the filter box treats all selected items within a single category as "or" rather than "and" whereas it treats different selected categories as "and".
It could offer a more complicated rule definition dialog, but one easy solution would be to add "+" icon at the end of each category and if the user wants "and" rule for some items within the same category, just click the + button and select items in an additional box for "and".

For instance,

Image

would mean (china "or" japan) "and" (short).

Ah, I see, I will suggest this feature then. Thanks again tars, you always seem to be the one to be able to help me, soon, I will be as proficient as you, I think for 2 weeks of use, I'm already pretty good!

Easiest would be instead of trying to make 3 subsets of this one "To be watched" tag, I just have 3 separate to watch tags, one each for foreign,english,docu.