[mythtv-users] [PATCH] Added Recording "Under" Time to enable to
start recordings early
Tako Schotanus
quintesse at palacio-cristal.com
Sat Jun 28 01:27:26 EDT 2003
The setting can be changed in the same screen where you can set the
"Recording Over Time".
I know "Recording Under Time" sounds silly but it _is_ the opposite of
"Recording Over Time" =)
Others can think of a better label, I just wanted to get this patch out
because I needed it at this moment (never trust Dutch programs to start
or end at the designated times!)
While looking at the code to make this patch I _did _ notice that the
conflict handling stuff doesn't seem to take into account the Over Time
setting (and neither does it the Under Time course). Maybe people
normally set Over Time to short values (therefore you set it in seconds
instead of minutes?) but I would probably set Under Time to 5 minutes
and Over Time to at least 10-15 to make sure that minor delays are taken
into account (wouldn't want to miss the ending of the last episode of my
favorite show!). Just letting you know.
Have fun,
-Tako
PS: I know! I should probably send this to the dev list instead ;-)
-------------- next part --------------
Index: scheduler.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/scheduler.cpp,v
retrieving revision 1.27
diff -r1.27 scheduler.cpp
1007a1008,1009
> int underrecordseconds = gContext->GetNumSetting("RecordUnderTime");
>
1014c1016
< secsleft = curtime.secsTo(nextrectime);
---
> secsleft = curtime.secsTo(nextrectime) - underrecordseconds;
-------------- next part --------------
Index: globalsettings.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/globalsettings.cpp,v
retrieving revision 1.73
diff -r1.73 globalsettings.cpp
215a216,225
> class RecordUnderTime: public SpinBoxSetting, public GlobalSetting {
> public:
> RecordUnderTime():
> SpinBoxSetting(0, 600, 1),
> GlobalSetting("RecordUnderTime") {
> setLabel("Time to record before start of show (in seconds)");
> setValue(0);
> };
> };
>
908a919
> general->addChild(new RecordUnderTime());
More information about the mythtv-users
mailing list