[mythtv] Search page [was: Recording Group]
Bruce Markey
bjm at lvcm.com
Mon Dec 15 19:03:44 EST 2003
Bruce Markey wrote:
...
> My most recent brainstorm from about a week ago is "What's New".
> MythTV doesn't have a way to highlight specials or series
> premieres. However, I came up with a simple (although not very
> selective) approach.
...
> Then I thought that it may not be a good thing to clutter the
> Schedule Recordings menu with a "What's New" item 'cuase we
> still need a Search page. That lead to thinking that this could
> be a button on a "Search" page. Search could also do the same
> thing of passing an arg or calling a method to populate a
> proglist page with the results of a keyword search query.
Attached is a patch that adds a "Search Listings" page from
the "Schedule Recordings" menu. This is against current CVS
(it requires some related stuff checked in Sunday afternoon).
To apply, cp -rp your working source dir., copy search.cpp
and search.h to programs/mythfrontend/ then apply search.diff
with "patch".
If I've ever tested and nit-picked your work, here's your
chance to get back at me ;-).
I know of some issues. The What's New button will not give
satisfying results during the first week and certainly not
on the first day. I've toyed with different ways to try to
initialize the list of old titles but the bottom line is
that there needs to be at least one week of old listings
before it can return concise results. If you want to get a
head start, grab any and all 'program' entries (from before
today's date) from your mysqldump backups and stuff them into
'program'. Next, run mythfilldatabase so that it can load the
oldtitles and remove all the old program entries.
There seems to be a pre-existing bug or set of bugs where
bad things can happen when nesting pages. For example, from
the Priorities page, hit "I" to an advanced options page then
click the up-coming episodes button then another advanced
options page. ESC a couple time then choose something else
and eventually buttons stop working or the frontend stops
responding to new keystrokes. This happened to me often when
traversing search results and I'm not sure how to debug this.
It may be possible to add more qualifiers for searches down
the line like specifying category, date, channel, etc. However,
I think this may be creeping featurism so I kept it simple and
didn't really lay things out to anticipate adding more clauses.
If someone wants to add things like this, feel free to do so.
I'm open to suggestion for the text that appears on any of the
buttons or even the name of the page.
-- bjm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: search-patch.tgz
Type: application/x-gtar
Size: 2378 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20031215/7c8c6c30/search-patch.tgz
More information about the mythtv-dev
mailing list