filter on multiple tags (fields)

Help each other out

filter on multiple tags (fields)

Postby dalanik on Wed Apr 08, 2009 8:21 am

I'm trying to filter out movies for my kid. Now, setting single filed filter (custom search) on "animation" as a genre is easy, but he also wants to watch movies that are not animated (i.e. star wars, batman, etc). Is there a way to display movies of 3-4 different genres?

Hm, thinking of that, would it be possible to filter in xAnt on multiple values or with wildcards, something like:

filters=$$ITEM_BORROWER(movies*)
or
filters=$$ITEM_BORROWER(movies_adult), $$ITEM_BORROWER(movies_kid)

I'm thinking of creating separate DB for kids (but would like to have ALL movies when logged on as "adult" - including kid's movies)
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Re: filter on multiple tags (fields)

Postby scottw on Wed Apr 08, 2009 12:21 pm

I am doing something similar. Pick an un-used field in Ant (I chose Subtitles) and put something unique in it ie. Kids. Then setup the xAnt ini to import 2 different DB's and use a filter on one of them for your kids.
Like this:
Code: Select all
[Movies]
input=C:\Program Files\Ant Movie Catalog\movies.amc
output=c:\xlobby\databases\movies.xml
images=C:\Program Files\Ant Movie Catalog\images\
sort=$$ITEM_ORIGINALTITLE
template=C:\xlobby\plugins\xant\moviestemplate.xml
filters=

[MoviesKids]
input=C:\Program Files\Ant Movie Catalog\movies.amc
output=c:\xlobby\databases\MoviesKids.xml
images=C:\Program Files\Ant Movie Catalog\images\
sort=$$ITEM_ORIGINALTITLE
template=C:\xlobby\plugins\xant\moviestemplate.xml
filters=$$ITEM_SUBTITLES(Kids)


Now you have 2 DB's, one for your kids and one with everything for you. This was you can do a Custom Search on the filtered DB to drill down even more.

I setup a basic script in Ant so I can just CTRL-Click the movies I want in the filter and run the script which would add the "Kids" tag in the Subtitles field...let me know if you need it.

It would be nice to be able to do it the way you are asking but I don't think you can...wonder if there is an updated xAnt?

Let me know if this helps.
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: filter on multiple tags (fields)

Postby dalanik on Wed Apr 08, 2009 2:24 pm

Thanx for help, but this doesn't solve it. I already use filters for normal/adult databases - now i need to filter normal database for the kid. Or make 3 databases. Now, I don't care if I have 3 dbs, but i want to have, when logged on as me, all films, including kids, and kid should have only kid films. That's why I need 2 filters, so I can filter out adult movies out of both normal and kid's dbs. :-) Complex, I know....

I already implemented this by adding a flag in the "translation" field which I don't use, but now I have to tag all kid films in ant.... :-) SO i'm looking for better solution....

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Re: filter on multiple tags (fields)

Postby scottw on Wed Apr 08, 2009 2:27 pm

Sorry I could not help :(

post back if you find something.
scottw
 
Posts: 774
Joined: Mon Feb 06, 2006 4:21 pm
Location: Glen Burnie, Maryland

Re: filter on multiple tags (fields)

Postby badubo on Thu Apr 09, 2009 2:53 pm

instead of :
filters=$$ITEM_BORROWER(movies_adult), $$ITEM_BORROWER(movies_kid)
try this
filters=$$ITEM_BORROWER(movies_adult,movies_kid)
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Re: filter on multiple tags (fields)

Postby dalanik on Tue Apr 14, 2009 9:13 am

Cool, I'll try it out!
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic