SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Phoenix
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-27-2011, 08:55 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
Multiple filters to a VFS view

All,

I seem to have a problem when creating a view multiple filters setup. For some reason phoenix doesn't like it. I'm trying to use the following 2 filters. But I see this happen whenever I use more than 1 filter no mater what type of filter it is.

<filter by="mediatype" scope="exclude" value="TV"/>

<filter by="missingmetadata" scope="exclude"/>
Reply With Quote
  #2  
Old 04-27-2011, 09:15 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
Two filters are not supported. You need to use a filter group instead. Look up in the filters sections for examples.

btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #3  
Old 04-28-2011, 05:56 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
The reason for not allowing multiple filters at the root level is really an issue of how do you interpret them.

Code:
<filter by="channel " value="1234"/>
<filter by="mediatype value="Movie"/>
Is that filter by channel = 1234 AND mediatype = Movie or is that filter by channel = 1234 OR mediatype = 'Movie'?

The reason for PQL was to solve this issue and to also offer other types of filtering. Currently PQL only support filtering on metadata fields, but it will be extended to support the existing filters as well.

I could add a new tag to <view> for <item-group> and then allow you to define filter groups inline in the view, but you can do that now in the <filters> section, so i haven't really put much effort into do that, since it'll be one more thing I need to parse/store about the view
Reply With Quote
  #4  
Old 04-28-2011, 05:34 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
well did try some pql cause at the time i couldnt figure out a solution.But its not working how i thought. Im trying to filter out unmatched and TV content. this didnt seem to filter out the tv content

Code:
<filter by="pql" value="MediaType is null or MediaTitle is null or MediaType = 'TV'"/>
Reply With Quote
  #5  
Old 04-28-2011, 06:22 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Gustovier View Post
well did try some pql cause at the time i couldnt figure out a solution.But its not working how i thought. Im trying to filter out unmatched and TV content. this didnt seem to filter out the tv content

Code:
<filter by="pql" value="MediaType is null or MediaTitle is null or MediaType = 'TV'"/>
I'm not quite sure what you mean by filter out unmatched content, but your querry will return all videos where the media type is TV or null or where the media title is null. (ie, if either mediatype or mediatitle is null or if mediatype is TV). I'm not sure that's what you want.

I think you might want

Code:
<filter by="pql" value="MediaType is null or (MediaTitle is null and MediaType = 'TV')"/>
This will return all files if the mediatype has not been set, or all files where the mediatitle is null and the media type is TV. Maybe if you could explain what it is that you are trying to return, then I can try to help you write a query.
Reply With Quote
  #6  
Old 04-28-2011, 10:39 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
I'm trying to filter out all unmatched(aka missing metadata) videos and media that's been tagged as TV
Reply With Quote
  #7  
Old 04-29-2011, 06:15 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Gustovier View Post
I'm trying to filter out all unmatched(aka missing metadata) videos and media that's been tagged as TV
This is pretty tricky (with or without pql). Files are not tagged as TV until they have metadata, so to find files that are tagged as TV but missing metadata can be a little tricky.

The following
Code:
MediaType = 'TV' and EpisodeNumber = 0
will return a list of tagged TV file that is missing the EpisodeNumber field, which is an indication the the file is missing metadata. Not sure this would return much, since again, BMT typically doesn't tag a file as being TV until it can get metadata.

A better approach would be to create a view of all recordings, and TV files (we probalby have that view already), and then just use the PQL
Code:
EpisodeNumber = 0
Since the view's source has already fetched all TV files, then this will now filter all those that have no episode number, which is probably what you want.

I hope this helps.
Reply With Quote
  #8  
Old 04-30-2011, 10:32 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
I created a multi-filtered view by creating a view with one filter then creating another view bringing in the original view and adding my second filter worked great!

I'd share what I did, but on vacation in sunny california!
Reply With Quote
  #9  
Old 04-30-2011, 07:44 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by wrems View Post
I created a multi-filtered view by creating a view with one filter then creating another view bringing in the original view and adding my second filter worked great!

I'd share what I did, but on vacation in sunny california!
I'm hoping to be there in 2 weeks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request: Folder & View Filters to TV Menu disco340 Diamond 1 03-12-2011 06:27 AM
View multiple channels on same transponder on a DVB-S card helmi Hardware Support 5 02-12-2011 04:02 PM
Saving filters for a view pvrpenguin Sage My Movies 4 09-10-2010 06:46 PM
Multiple Vista View Saber 2020 Update ARMYB77 Hardware Support 2 10-26-2006 12:33 PM
multiple dscaler filters at once? Sailn SageTV Software 1 08-04-2003 08:43 PM


All times are GMT -6. The time now is 04:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.