[mythtv] Patch to disable recordings

Matt White whitem at arts.usask.ca
Sat Aug 2 16:04:05 EDT 2003

Here's a quick patch for your consideration.  It adds an option
to the General TV Settings to disable recording.  

This being summer and all, I (and hopefully some of the rest
of you) manage to get away from home to go out to the cabin
or camping.  I started thinking that it would be nice to be able
to just grab my Myth box and take it along, since it's got music,
recorded programs, videos, etc. all in one package, and a guy
can't fish all day :-)

Obviously, Myth won't be able to do recordings when it's not
hooked up to a source (well, it will, but I've never been a fan
of watching static).  This disable recording option simply surpresses
them (in exactly the same way that it surpresses recordings when
it's low on disk space).  That way, you don't get useless recordings,
plus the shows aren't marked as being already recorded, so when
you get back and plug it back in, they'll get recorded if they are
shown again.

There's only one part that I'm not quite happy about - I didn't want
to do a GetNumSetting() every time through the scheduler loop, so
it checks on startup, plus each time that it finds changes in the todo
list.  That means that when you disable recordings, it actually won't
take effect until you either restart mythbackend, or make a change
to your recording todo list.  If anyone has a better idea on this, please
let me know.

Attached is a patch (cvs diff -uw) against CVS from 01/08/2003.

Matt White                          whitem at arts.usask.ca
Arts and Science Computer Labs      University of Saskatchewan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drecord.diff
Type: text/x-diff
Size: 3287 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030802/eae79a56/drecord.bin

More information about the mythtv-dev mailing list