|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Video Browser Search
I'm obviously missing something, or my ignorance has finally caught up with me, but I can't really understand how the browser search works. There are a couple of anomalies that I can't figure out.
If I change the 2 instances of Code:
VideoSearchList = SearchSelectedFieldsRegex(pattern, true, true, false, false, false, false, false, false, false,"VD") to Code:
VideoSearchList = SearchSelectedFieldsRegex(pattern, true, true, true, true, true, true, true, true, true,"VD") Also when I try to change the parameters for the output sort Code:
SortLexical(VideoSearchList, false, "GetShowEpisode") to SortLexical(VideoSearchList, false, "GetAiringStartTime") Anyone got any ideas as to the obvious thing I'm doing wrong? John |
#2
|
||||
|
||||
Quote:
There should only be a single instance of SearchSelectedFieldsRegex() for imported vide searching, by the way. The other one is not for Regex. Quote:
Code:
VideoSearchList = SortLexical(VideoSearchList, false, "GetShowEpisode") - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#3
|
||||
|
||||
Thanks Andy, that sorted my sorting problem.
As far as the search goes, here's where my confusion starts. If I use the movie Armageddon as an example. In standard search (not one touch) the search will find the movie when doing a search of "asteroid" which is in the Description field. (search1.jpg) In one touch search it finds the movie Armageddon at "aster" (In the PeopleList is Newscaster) (search2.jpg) but at "astero" it no longer shows Armageddon in the results (search3.jpg). I see what you mean about the blank input and fragments. If I do a search on "willis" they end up blank, but I do get a match to Armageddon with Bruce Willis in the PeopleList (search4.jpg) John |
#4
|
||||
|
||||
Are you using a .properties file for Armageddon? If so, could you post it? I can't reproduce it using the made up data files I test with. I'll use the properties file with some dummy video.
Oh, and I see Chef! in those search results. A local station started airing that series again and I couldn't resist watching it again. PBS channels here tend to show British comedies on Friday & Saturday night. Now, if one of them would air Joking Apart agan... - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#5
|
||||
|
||||
Andy, properties attached, saved from IMDB. There are some fields in it that aren't used by Sage, but look forward to more fields being supported.
I've not seen Joking Apart, but we have a channel UKTV, which as the name may suggest plays British shows, which gets quite a hammering on the recording schedule John |
#6
|
||||
|
||||
If there is a problem with SearchSelectedFieldsRegex() in the core, then you'll have to continue tracking it down because when I use that properties file, I have no problem using one-touch NTE searching to find 'asteroid'. But, I also have no 'Newscaster' in the people list.
Are you adding this data via your import, or letting the core read in the properties file? You might want to double check how the data for that show is getting added to the database. When I use GetPeopleInShow(), the "Actors" line seems to be skipped because it isn't "Actor". I think you'll have to clean up that properties file before testing it further, because I'm getting strange results with it. I just looked up Joking Apart on IMDB... I would say that the user rating makes the show sound great, but there are only 19 votes & they are probably people who already liked the show before looking it up. Google found other sites. All I can say is that I could not sit down while watching this show over 10 years ago... I kept laughing so hard, I always fell out of my seat. I finally decided it just wasn't worth even trying to sit. The only other show to do that to me was the American version of "Whose Line Is It Anyway?", and even then, it was only a few episodes... such as the one with Florence Henderson. Of course, I have a wierd sense of humor, so you may not agree with what I think is funny. Oh yeah, since I'm remembering old comedy imports from years ago... there was a show called Mother and Son from Australia. I don't remember any of the jokes from that one, though. - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#7
|
||||
|
||||
Hmm, you're right, it does work when the description is imported using the properties file.
The data was added via an AddShow in my import, which is also allowing me to add a description containing carriage returns. I guess that more than likely that's the problem. I suppose you could call it a bug if I'm able to add a description with carriage returns in it via AddShow, but the search can't find it. GetShowDescription is able to get the whole description including carriage returns. I will investigate further, to pin it down. Good catch on the Actor tag, I've fixed that up on my import. Have you seen another Steven Moffat written show called Coupling, I loved the first 3 seasons. John |
#8
|
||||
|
||||
OK, here goes. The regex one touch search doesn't search my description field (created with AddShow) if it has carriage returns in it, but the standard search does. So is it the one touch, or the standard search that isn't working properly? or is that just the difference between the two search methods?
The Sage .properties parser understandably doesn't parse fields with carriage returns, so I need to fix how I'm creating the files, which will of course solve the search issue. Where does the .properties Comment tag get saved to? I thought it was going into Misc, but it's not. John |
#9
|
||||
|
||||
No, I haven't seen Coupling. I don't think it has even been aired here.
Quote:
Or, maybe check this first: Quote:
- Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#10
|
||||
|
||||
Update: Yes, definitely change any carriage returns in the text to \n.
And, the Comment tag is not currently used, so I suppose that makes it inaccessible. - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#11
|
||||
|
||||
Thanks Andy. During my test, I had removed all the \r and \n , so it would be nice to be able to get some formatting back in.
Thanks for your help. Incredible what unfolds by changing SearchSelectedFieldsRegex() John |
#12
|
||||
|
||||
Quote:
When I said the Sage parser doesn't parse fields with carriage returns, what I really meant, was that it only parses up to the carriage return. With only \n it still only parses up to the \n. With my .my file handling, I had resorted to substituting \n with ### while saving and reversing that for display. I suppose I'll either eliminate the multi paragraph fields or do the same with this, unless there's another way. There's no hidden formatting options are there? I like the way GetShowExpandedRatings() automatically replace the last seperator with "and" John |
#13
|
||||
|
||||
I got the impression that it should be able to read in \n as part of a metadata property, so about the only thing I can suggest is to set up a sample basic metadata properties file that uses \n, where the rest of the line gets cut off when imported, and submit that as a bug.
Once that is taken care of, if SearchSelectedFieldsRegex() still can't search beyond the point where there is \n, then I suppose that would be the next bug report. - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#14
|
||||
|
||||
Bug Submitted
Thanks Andy John |
#15
|
||||
|
||||
Just an update. I probably misunderstood. The .properties field will not import past a newline \n, but will import past \n as text and parses it as a newline \n (Is there enough \n's in that sentence?)
Examples Description=Here's a description that goes over two lines parses as Here's a description Description=Here's a description\nthat goes over two lines parses as Here's a description that goes over two lines SearchSelectedFieldsRegex() doesn't search a field containing newline \n John |
#16
|
||||
|
||||
Oh -- I thought you meant you were trying to use '\n' as part of a single line of text, and text on that single line was being cut off after the '\n' chars.
So, since that isn't a problem, I suppose SearchSelectedFieldsRegex() is the only remaining issue. - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#17
|
||||
|
||||
Quote:
Here's the reply I got from the bug submit The bug is in the STV. When it compiles the regex pattern it doesn't specify DOTALL which is needed to absorb the newline characters. I'll have the STV updated with that fix. John |
#18
|
||||
|
||||
Andy,
I assume it's this line Code:
pattern=java_util_regex_Pattern_compile("(?iu).*?("+SearchRegexString+").*") John |
#19
|
||||
|
||||
Should be a pretty simple fix, according to the docs for Pattern.compile. All you need is one more argument specifying the DOTALL flag, which (according to the docs) has a decimal value of 32. So:
Code:
pattern=java_util_regex_Pattern_compile("(?iu).*?("+SearchRegexString+").*", 32)
__________________
-- Greg |
#20
|
||||
|
||||
or change the options block "(?iu)" to "(?ius)", giving:
Code:
pattern=java_util_regex_Pattern_compile("(?ius).*?("+SearchRegexString+").*") Code:
pattern=java_util_regex_Pattern_compile("(?iu).*?("+SearchRegexString+").*", java_util_regex_Pattern_DOTALL)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV V6.1.4 Release Candidate | Narflex | SageTV Beta Test Software | 2 | 03-09-2007 12:02 PM |
Nvidia Decoder / Video quality problems | brundag5 | SageTV Software | 2 | 01-12-2007 06:58 PM |
Video is working, now for sound | otakucode | SageTV Software | 2 | 01-03-2007 05:19 PM |
Video Setup Questions... | MrApollinax | SageTV Software | 1 | 12-20-2005 09:22 AM |