SageTV Community  

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

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-17-2011, 01:02 PM
Biggen Biggen is offline
Sage Advanced User
 
Join Date: Sep 2010
Posts: 248
Can't search for anything anymore...

Upgraded to the new Phoenix build this morning and ever since then, I can't search for anything in BMT. The only way I can change/edit my metadata is to browse to the movie. If I type in the movie name, BMT responds with "Search Failed for [insert movie name]".

Anyone else?
Reply With Quote
  #2  
Old 04-17-2011, 01:53 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I apologize... I changed how the search works, and i forgot to post a message explaining the changes

The search box now accepts a query expression (much like sql, but called, PQL (or Phoenix Query Language)) which can be used to search any metadata fields.

So, to do a title search now, you'd enter something like, Title = 'House'.

But, you can also do more advanced querries, such as find all episode of house where the season is greater than 3.

Code:
Title = 'House' and SeasonNumber > 3
or, even more complex, you can replicate the Missing Metadata query...

Code:
MediaType is null or MediaTitle is null or (MediaType = 'TV' and EpisodeNumber = 0)
You can also search the genres as well...

Code:
Genre contains 'Horror' or Genre contains 'Thriller'
For a complete list of the fields on which you can query, check out this file.
Reply With Quote
  #3  
Old 04-17-2011, 02:22 PM
Biggen Biggen is offline
Sage Advanced User
 
Join Date: Sep 2010
Posts: 248
Ahh. Ok, I'll play around with it.

Any reason for the change? Obviously, this type of searching is much more 'powerful'...
Reply With Quote
  #4  
Old 04-17-2011, 04:39 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Biggen View Post
Ahh. Ok, I'll play around with it.

Any reason for the change? Obviously, this type of searching is much more 'powerful'...
I needed to do more powerful searches I didn't want to create separate basic/advanced search panels, etc, so the single search box was modified to accept the PQL querries. I considered making the search box work like a regular title search if you entered a single keyword... I may still do that.
Reply With Quote
  #5  
Old 04-18-2011, 11:54 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
Quote:
Originally Posted by stuckless View Post
I considered making the search box work like a regular title search if you entered a single keyword... I may still do that.
+1
Reply With Quote
  #6  
Old 04-18-2011, 11:58 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
The search string is case sensitive. Is it possible/likely to ignore case?
Reply With Quote
  #7  
Old 04-18-2011, 12:11 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I'll change the search to be case insensitive. (that'll add a small performance hit... but shouldn't be too bad)
Reply With Quote
  #8  
Old 04-18-2011, 01:21 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
One more thing to consider adding to this field. Is execute on Enter key. Right now one has to execute the query with a mouse click on the magnifying glass.

BTW, Awesome job on the inclusion of this!!!! The PQL and the recently added Batch Updater really make BMT powerful and easy to manage metadata in anyway a user see's fit. I just made very quick work of Genre mismatches, and was able to create a few different Custom categories which I then mapped to specific Genre lookup views and created their menu links to have a very nice polished segregated movie collection they way I want to see it!!

It's a little maintenance going forward but I don't buy too many movies, so it wouldn’t be too big of a deal to keep up with/maintain...

One thing I’ll throw out for you to consider is a method to auto tag with the Genre field based on a user defined definition. Sort of what I just did to query and tag my Kid’s movies but applied to the scraped metadata on initial load. What I did was run PQL queries for Genre=’Family’, Genre=’Animation’ and Batch updated/appended the tag Kid’s. Then I did another query for Rated=’G’ and appended the Kid’s genre. It would be nice to be able to assemble a basic definition that would do this on the fly as movies were added to the system. If the movies is Family, Animation, Rated G add the Kid’s tag.

Maybe there’s a better way but this worked well for my situation.

Thoughts/Comments??
Reply With Quote
  #9  
Old 04-18-2011, 01:48 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
One more thing to consider adding to this field. Is execute on Enter key. Right now one has to execute the query with a mouse click on the magnifying glass.

BTW, Awesome job on the inclusion of this!!!! The PQL and the recently added Batch Updater really make BMT powerful and easy to manage metadata in anyway a user see's fit. I just made very quick work of Genre mismatches, and was able to create a few different Custom categories which I then mapped to specific Genre lookup views and created their menu links to have a very nice polished segregated movie collection they way I want to see it!!

It's a little maintenance going forward but I don't buy too many movies, so it wouldn’t be too big of a deal to keep up with/maintain...

One thing I’ll throw out for you to consider is a method to auto tag with the Genre field based on a user defined definition. Sort of what I just did to query and tag my Kid’s movies but applied to the scraped metadata on initial load. What I did was run PQL queries for Genre=’Family’, Genre=’Animation’ and Batch updated/appended the tag Kid’s. Then I did another query for Rated=’G’ and appended the Kid’s genre. It would be nice to be able to assemble a basic definition that would do this on the fly as movies were added to the system. If the movies is Family, Animation, Rated G add the Kid’s tag.

Maybe there’s a better way but this worked well for my situation.

Thoughts/Comments??
Just so you know... you can combine the PQL Querries, such as...
Genre contains 'Family' or Genre contains 'Animation' or Rated='G'

And, PQL is far from finished... this is just the first step... over the next few months, you'll see a few new additions to PQL and I can see it being able to update as well, such as,

set Genre = '+Kids' where Genre contains 'Family' or Genre contains 'Animation' or Rated='G'

Once that is in place, it wouldn't be too hard to have one or more pql scripts run against a single imported file, as it's being added to the collection.
Reply With Quote
  #10  
Old 04-18-2011, 02:43 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
Nice:

Genre contains 'Family' or Genre contains 'Animation' or Rated='G' and MediaType='Movie'

One step! Even better.

BTW, I like the new Avatar!
Reply With Quote
  #11  
Old 04-18-2011, 04:11 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
BTW, I like the new Avatar!
yeah, just trying to give the new puppy a little facetime
Reply With Quote
  #12  
Old 04-25-2011, 10:43 AM
fac13 fac13 is offline
Sage Advanced User
 
Join Date: Feb 2008
Location: UK
Posts: 199
Quote:
Originally Posted by stuckless View Post
I considered making the search box work like a regular title search if you entered a single keyword
+1

I like the idea of being able to do advanced queries too, but mostly I used the basic title search and I miss it.

I really, really like BMT, thank you
Reply With Quote
  #13  
Old 04-25-2011, 12:51 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by fac13 View Post
+1

I like the idea of being able to do advanced queries too, but mostly I used the basic title search and I miss it.

I really, really like BMT, thank you
I've changed the code so that it works this way, so i'll be in the next build... I just don't know when the next build will be
Reply With Quote
  #14  
Old 04-26-2011, 08:31 PM
Comitizer Comitizer is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Calgary, Alberta, Canada
Posts: 174
This seems pretty good but I find that I have to type the entire title now if I'm just entering a single search term. For example, if I search for "Shameless" in the old system I would get any piece of media with "Shameless" in the title. Now, I miss the items that are called "Shameless (US)".

I used to use this to query to find all items of some specific series. For example, "The Office" is often often tagged as "The Office (US)". In the old system, the query would bring back both. Now, I just get the first one.

I tried to use a wildcard (*) but that didn't help. Can you add the wildcard?
Reply With Quote
  #15  
Old 04-26-2011, 09:06 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Comitizer View Post
This seems pretty good but I find that I have to type the entire title now if I'm just entering a single search term. For example, if I search for "Shameless" in the old system I would get any piece of media with "Shameless" in the title. Now, I miss the items that are called "Shameless (US)".

I used to use this to query to find all items of some specific series. For example, "The Office" is often often tagged as "The Office (US)". In the old system, the query would bring back both. Now, I just get the first one.

I tried to use a wildcard (*) but that didn't help. Can you add the wildcard?
I'll look into adding wildcard support. Obviously, we are still working out the kinks with PQL
Reply With Quote
  #16  
Old 04-26-2011, 10:21 PM
Comitizer Comitizer is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Calgary, Alberta, Canada
Posts: 174
No worries, I think it has some SERIOUS potential in the future. Thanks for taking my feedback.
Reply With Quote
  #17  
Old 04-27-2011, 07:06 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
Avoid the = and use contains:

Title contains 'Shameless'
Reply With Quote
  #18  
Old 04-27-2011, 01:43 PM
MitchSchaft MitchSchaft is offline
Sage Expert
 
Join Date: Jan 2008
Posts: 717
Quote:
Originally Posted by wrems View Post
Avoid the = and use contains:

Title contains 'Shameless'
That's the only way I could get it to work. Use 'contains' instead of '='.
Reply With Quote
  #19  
Old 04-27-2011, 10:27 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Another point to perhaps try to work towards might be to incorporate parentheses support as well. I can think of a few situations where this would be useful. Also, forgive me for not looking yet, but are the PQL search results exposed via the Phoenix API?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #20  
Old 04-28-2011, 04:35 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
Another point to perhaps try to work towards might be to incorporate parentheses support as well. I can think of a few situations where this would be useful. Also, forgive me for not looking yet, but are the PQL search results exposed via the Phoenix API?
Parenthesis are supported as well as 'and' and 'or'...

Code:
MediaType is null or MediaTitle is null or (MediaType = 'TV' and EpisodeNumber = 0)
PQL is exposed, in a way, in that it's a native part of the VFS. PQL results are vfs items.
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
Malore Search (from Program Guide) Defaults to Video Search Type darcilicious SageTV v7 Customizations 4 10-06-2010 11:17 PM
Search Function Question (only getting numbers in search) SDeGonge SageTV v7 Customizations 2 10-01-2010 10:32 PM
ATI All in Wonder not recognized anymore Julianus SageTV Beta Test Software 2 04-09-2006 05:14 PM
No new STV development anymore? 1972 SageTV Customizations 2 04-27-2005 12:57 AM
Music folder hierarchy, search unique, search alert, and Launchcast Archerkit SageTV Customizations 1 07-01-2004 08:24 AM


All times are GMT -6. The time now is 12:31 PM.


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