[mythtv-users] scheduler and sports
mythtv at rackle.com
Fri Oct 14 03:31:26 UTC 2005
It doesn't look like you can extend a recording with 0.18 (at least,
not that I can see in the UI. perhaps there is an API for this?).
But you don't need to extend the recording per se, you just need to
start a new one, right? I'll look at the code to see what updating
the database while a recording is happening would do.
psuedo code for a baseball game:
27,57 * * * * /usr/bin/perl /home/mythtv/check-for-extended-sports-broadcast.pl
teams = determine_teams()
score = get_current_score_from_espn.com(teams)
inning = get_current_inning_from_espn.com(teams)
if (inning<>'F' || inning<9 || is_tied(score) &&
schedule_new_program() /* or extend_current_recording(), if possible */
I guess football would be harder, but if
nothing_scheduled_for_next_timeslot() returns true, you could err on
the side of recording.
On 10/13/05, Kevin Kuphal <kuphal at dls.net> wrote:
> kanetse at gmail.com wrote:
> > On 10/13/05, *Neil Cronin* <mythtv at rackle.com
> > <mailto:mythtv at rackle.com>> wrote:
> > Is anyone open to helping out with the espn.com <http://espn.com>
> > scraping idea? Or am
> > I on my own?
> > It doesn't seem too hard to do, but hard to test and potentially
> > pretty fragile.
> > Can MythTV even be told to "extend a recording" once it has started?
> > I know there's a protocol that you can use to talk to the backend over
> > a TCP socket... but does MythTV itself support changing the end time
> > or duration of a recording in progress?
> The SVN version of MythTV (destined to be 0.19) can do this from the
> mythtv-users mailing list
> mythtv-users at mythtv.org
More information about the mythtv-users