[mythtv-users] Canned searches (.19)
Derek Battams
derek at battams.ca
Mon Feb 20 20:23:01 UTC 2006
Quoting Brian Frost <bfrost at brainboy.com>:
> I want to automate recordings of programs that fall into a particular
> class (ie Comedy made in 19[45]*) but I am not sure how to do that
> yet, so I would be happy if someone could point me in the right
> direction for extending my canned searches to include dates/classes.
>
> I found the file at /var/www/html/mythweb/config/canned_searches.php
> but am not sure which fields (and by which names) I have access to...
>
> Any pointers in the right direction would be great. And for the
> record, I have checked the wiki and done numerous google searches but
> I just end up with peoples personal mythweb environments :)
Create a Power Search recording rule that looks something like the following:
If what you're wanting to record are TV shows:
program.category = "Comedy" AND YEAR(program.originalairdate) >= 1940
AND YEAR(program.originalairdate) <= 1959 AND (program.category_type =
'series' OR program.category_type = 'tvshow')
If you're looking for movies:
program.category = "Comedy" AND program.airdate >= 1940 AND
program.airdate <= 1959 AND program.category_type = 'movie'
These are untested, but should get you started in the right direction.
If you want to know what fields are available to base your search on
then you can look at the columns of the program and channel tables.
You can also add more tables, if you wanted, via the construction of
your power search rule, but I suspect the default will be enough for
you.
- Derek
More information about the mythtv-users
mailing list