Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Bruce, a question for you about schedules

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


kuphal at dls

Jun 21, 2007, 6:53 PM

Post #1 of 6 (363 views)
Permalink
Bruce, a question for you about schedules

Bruce, since you're pretty much the expert in this area, I thought you might
have a pointer. I've been considering the idea of adding a simple feature
to Myth where, if you have an upcoming showing of a progam recorded by a
power search (such as I do for Premier episodes of shows), that you could,
when selecting the upcoming episode, be given another option (along with
don't/never record, edit options, override) that would allow you to set up a
separate title/program specific rule as if the showing was not already being
recorded. As it stands now, I have to wait or remember to look for the show
after it premiers and is no longer subject to the rule to be able to
schedule another rule that overlaps.

What I'm looking for pointers on is what to query in the database or what
condition to key off to know when to present that button. I only want it to
show on non-title/program specific rules such as power searches and then let
me present the standard dialog window for creating a new title/program
specific rule. If you have some advice, I'd greatly appreciate it.

Thanks,
Kevin


bjm at lvcm

Jun 21, 2007, 9:07 PM

Post #2 of 6 (351 views)
Permalink
Re: Bruce, a question for you about schedules [In reply to]

Kevin Kuphal wrote:
> Bruce, since you're pretty much the expert in this area, I thought you
> might have a pointer. I've been considering the idea of adding a simple
> feature to Myth where, if you have an upcoming showing of a progam
> recorded by a power search (such as I do for Premier episodes of shows),
> that you could, when selecting the upcoming episode, be given another
> option (along with don't/never record, edit options, override) that
> would allow you to set up a separate title/program specific rule as if
> the showing was not already being recorded. As it stands now, I have to
> wait or remember to look for the show after it premiers and is no longer
> subject to the rule to be able to schedule another rule that overlaps.

Yes, I've very familiar with the issue and methodology. However,
I hadn't thought of what you suggest here. That is, add a button
on the override buttons page for "Create a new rule" or something
next to the "Add Override" button. May be just a matter of creating
a new ScheduledRecording object from the programinfo without loading
any existing SR object.

> What I'm looking for pointers on is what to query in the database or
> what condition to key off to know when to present that button. I only
> want it to show on non-title/program specific rules such as power
> searches and then let me present the standard dialog window for creating
> a new title/program specific rule. If you have some advice, I'd greatly
> appreciate it.

I don't think you need to make that distinction. A WeekSlot rule
could be desirable over an existing Channel rule. For example,
I have a show on The Sundance Channel that is shown three or
four times per week but one showing at 2:30am is always 5 to 10min
late. What I'd do thusfar is to change the Channel rule to Single
for another showing, add a WeekSlot at 2:30 with 10min End Late
then change the Single back to Channel. It might be nice to click
a button and just add the overriding WeekSlot. [.Rules of precedence
still apply. If I added a new All, it would still lose to the old
Channel rule.]

In your example, I agree that if you have a 'Premier episodes' rule
set to inactive, it would be great to click a "Create a new rule"
button on the "x"ed item and set a Channel or All rule for this
new series that you know your going to want to record. Good idea.

This should all be in programinfo.cpp . Find the buttons and
add a new one that will create a new "record" object from the
program info without loading any current "record" info for an
existing rule on this showing.

-- bjm

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Jun 22, 2007, 2:06 AM

Post #3 of 6 (344 views)
Permalink
Re: Bruce, a question for you about schedules [In reply to]

On 06/22/2007 12:07 AM, Bruce Markey wrote:
> Kevin Kuphal wrote:
>
>> Bruce, since you're pretty much the expert in this area, I thought you
>> might have a pointer. I've been considering the idea of adding a simple
>> feature to Myth where, if you have an upcoming showing of a progam
>> recorded by a power search (such as I do for Premier episodes of shows),
>> that you could, when selecting the upcoming episode, be given another
>> option (along with don't/never record, edit options, override) that
>> would allow you to set up a separate title/program specific rule as if
>> the showing was not already being recorded. As it stands now, I have to
>> wait or remember to look for the show after it premiers and is no longer
>> subject to the rule to be able to schedule another rule that overlaps.
>>
> Yes, I've very familiar with the issue and methodology. However,
> I hadn't thought of what you suggest here. That is, add a button
> on the override buttons page for "Create a new rule" or something
> next to the "Add Override" button. May be just a matter of creating
> a new ScheduledRecording object from the programinfo without loading
> any existing SR object.

In case it's useful, MythWeb currently has this functionality. If you
select a show from Upcoming Recordings that uses your inactive First
Episodes rule, you have the option "Schedule via First Episodes (Power
Search)," which allows you to change the settings for the power search
rule. If you change the radio button to any other option (i.e. "Record
at any time on any channel") it creates a new rule. (The hard part is
remembering to uncheck the inactive box. ;)

Anyway, might be useful to see Chris's approach and, perhaps, use it as
a sanity check for yours (or, if you notice places it can be improved...).

Mike

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


david at istwok

Jun 22, 2007, 8:48 AM

Post #4 of 6 (329 views)
Permalink
Re: Bruce, a question for you about schedules [In reply to]

On Thu, Jun 21, 2007 at 08:53:23PM -0500, Kevin Kuphal wrote:
> have a pointer. I've been considering the idea of adding a simple feature
> to Myth where, if you have an upcoming showing of a progam recorded by a
> power search (such as I do for Premier episodes of shows), that you could,
> when selecting the upcoming episode, be given another option (along with
> don't/never record, edit options, override) that would allow you to set up a
> separate title/program specific rule as if the showing was not already being
> recorded. As it stands now, I have to wait or remember to look for the show

Good idea. Something like this has occurred to me in the past, but
I've never taken the time to flesh it out. As Bruce already noted,
this could be useful for non-search rules too. About the only rule
type it doesn't make any sense on are manual recording rules. Single
and override rules are debatable.

To check for a manual recording rule, you'll need to load the
PI::record member if needed. This can be done directly or indirectly
by calling PI::GetProgramRecordingStatus(). Then, check
record->getSearchType() for kManualSearch.

> What I'm looking for pointers on is what to query in the database or what
> condition to key off to know when to present that button. I only want it to
> show on non-title/program specific rules such as power searches and then let
> me present the standard dialog window for creating a new title/program
> specific rule. If you have some advice, I'd greatly appreciate it.

Bruce already pointed you toweard the dialog in programinfo.cpp. To
actually create a new rule, look at SR:;loadByProgram(). You'll
probably want to modify this to take an extra, optional parameter
(defaults to off) which always creates a new rule by bypassing the
call to loadByID().

David
--
David Engel
david[at]istwok.net
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


bjm at lvcm

Jun 22, 2007, 11:08 AM

Post #5 of 6 (321 views)
Permalink
Re: Bruce, a question for you about schedules [In reply to]

David Engel wrote:
> On Thu, Jun 21, 2007 at 08:53:23PM -0500, Kevin Kuphal wrote:
>> have a pointer. I've been considering the idea of adding a simple feature
>> to Myth where, if you have an upcoming showing of a progam recorded by a
>> power search (such as I do for Premier episodes of shows), that you could,
>> when selecting the upcoming episode, be given another option (along with
>> don't/never record, edit options, override) that would allow you to set up a
>> separate title/program specific rule as if the showing was not already being
>> recorded. As it stands now, I have to wait or remember to look for the show
>
> Good idea. Something like this has occurred to me in the past, but
> I've never taken the time to flesh it out. As Bruce already noted,
> this could be useful for non-search rules too. About the only rule
> type it doesn't make any sense on are manual recording rules. Single
> and override rules are debatable.

Singles can be changed to a recurring type so I think there would
be no need and only confusing for the offer. There have been times
that I wanted to change an override to recurring but I think these
were all a variation of this same circumstance. If I clicked "Record
anyway" on an inactive premiere I may have wished I could change
it to a recurring type but if we had a "Add a new rule" button then
this would not be an issue.

I think the underlying function should allow creating a new rule
when there is an existing rule for the showing under any
circumstances but then limit the criteria for when the button
is offered.

> To check for a manual recording rule, you'll need to load the
> PI::record member if needed. This can be done directly or indirectly
> by calling PI::GetProgramRecordingStatus(). Then, check
> record->getSearchType() for kManualSearch.
>
>> What I'm looking for pointers on is what to query in the database or what
>> condition to key off to know when to present that button. I only want it to
>> show on non-title/program specific rules such as power searches and then let
>> me present the standard dialog window for creating a new title/program
>> specific rule. If you have some advice, I'd greatly appreciate it.
>
> Bruce already pointed you toweard the dialog in programinfo.cpp. To
> actually create a new rule, look at SR:;loadByProgram(). You'll
> probably want to modify this to take an extra, optional parameter
> (defaults to off) which always creates a new rule by bypassing the
> call to loadByID().

Agreed.

-- bjm


_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


jppoet at gmail

Jun 22, 2007, 12:26 PM

Post #6 of 6 (327 views)
Permalink
Re: Bruce, a question for you about schedules [In reply to]

On 6/22/07, Bruce Markey <bjm[at]lvcm.com> wrote:
> David Engel wrote:
> > On Thu, Jun 21, 2007 at 08:53:23PM -0500, Kevin Kuphal wrote:
> >> have a pointer. I've been considering the idea of adding a simple feature
> >> to Myth where, if you have an upcoming showing of a progam recorded by a
> >> power search (such as I do for Premier episodes of shows), that you could,
> >> when selecting the upcoming episode, be given another option (along with
> >> don't/never record, edit options, override) that would allow you to set up a
> >> separate title/program specific rule as if the showing was not already being
> >> recorded. As it stands now, I have to wait or remember to look for the show
> >
> > Good idea. Something like this has occurred to me in the past, but
> > I've never taken the time to flesh it out. As Bruce already noted,
> > this could be useful for non-search rules too. About the only rule
> > type it doesn't make any sense on are manual recording rules. Single
> > and override rules are debatable.
>
> Singles can be changed to a recurring type so I think there would
> be no need and only confusing for the offer. There have been times
> that I wanted to change an override to recurring but I think these
> were all a variation of this same circumstance. If I clicked "Record
> anyway" on an inactive premiere I may have wished I could change
> it to a recurring type but if we had a "Add a new rule" button then
> this would not be an issue.
>
> I think the underlying function should allow creating a new rule
> when there is an existing rule for the showing under any
> circumstances but then limit the criteria for when the button
> is offered.

Just adding a vote for this. I would definately use such a feature.


John
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.