PDA

View Full Version : What am I missing? (filtering upcoming airings)


ja305
11-09-2005, 07:51 AM
I'm trying to modify the tutorial that lists upcoming movies to list upcoming football games instead.

The tutorial I'm referring to is at http://www.sagetv.com/sagetvstudioInt.htm

I'm trying to modify the following line
FutureAirings = FilterByMethod(FutureAirings, "GetShowCategory", "Movie", true)

by changing the "Movie" to other things. "Sports event" works, but gives me all sporting events.

"Sports event/Football" shows up under the show information for a football game when browsing the program guide, but that returns no results.

"Football" is one of the choices for category when browsing by categories, but that returns no results either.

Could someone let me know what I'm missing?

malore
11-09-2005, 08:38 AM
Sports event/Football indicates that Football is a subcategory of the sports event category.

so you would need to use:
FutureAirings = FilterByMethod(FutureAirings, "GetShowSubCategory", "Football", true)

or you can cover both categories and subcategories by using

FutureAirings = FilterByMethod(FutureAirings, "GetShowCategory|GetShowSubCategory", "Football", true)

ja305
11-09-2005, 12:58 PM
Thanks for your quick answer. :)

montgomeryt
11-26-2005, 08:47 AM
Would there be a way to apply this same concept to only looking for a particular team ? I want a schedule for only NC State - basketball ?

Narflex
11-26-2005, 01:33 PM
Using SearchSelectedFields should work for that. The team name will either be in the episode or the description.

montgomeryt
11-27-2005, 08:58 AM
Awesome! Thank you !