<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 9/12/23 13:13, Philip Brady wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AS8P193MB1464325D2CA0106C8F5F3F3BCDF1A@AS8P193MB1464.EURP193.PROD.OUTLOOK.COM">
<p class="x_MsoNoSpacing elementToProof" style="margin-top: 0px;
margin-bottom: 0px;">
Sorry but I'm still confused.</p>
<p class="x_MsoNoSpacing elementToProof" style="margin-top: 0px;
margin-bottom: 0px;">
" 7 and 8 are both still in use. The are both overrides, but
different types of override. 7 is for a rule that overrides a
specific recording to change some values, for example to record
one episode into a different recording group. 8 is for a rule
that overrides a rule and tells MythTV not to record a specific
showing of a series. It would make more sense if 8 returned a
string like Don't Record. The GetRecordSchedule API returns "Do
not Record" if the value is 8.2</p>
<p class="x_MsoNoSpacing elementToProof" style="margin-top: 0px;
margin-bottom: 0px;">
<br>
</p>
<div class="x_MsoNoSpacing elementToProof ContentPasted0"
style="margin-top: 0px; margin-bottom: 0px;">
I have always submitted text values for <Type> in <span
style="font-family: "Segoe UI Web (West European)",
"Segoe UI", -apple-system, BlinkMacSystemFont,
Roboto, "Helvetica Neue", sans-serif; font-size:
12px; display: inline !important; color: rgb(0, 0, 0);
background-color: rgb(255, 255, 255);" class="ContentPasted0">
</span>UpdateRecordSchedule. eg 'Record One';</div>
<div class="x_MsoNoSpacing elementToProof ContentPasted0"
style="margin-top: 0px; margin-bottom: 0px;">
The text values are the same for both 7 and 8.</div>
<div class="x_MsoNoSpacing elementToProof ContentPasted0"
style="margin-top: 0px; margin-bottom: 0px;">
Are you saying that it will also accept both text and numeric
values for <Type> ?</div>
<p class="x_MsoNoSpacing elementToProof" style="margin-top: 0px;
margin-bottom: 0px;">
Phil</p>
<p class="x_MsoNoSpacing elementToProof" style="margin-top: 0px;
margin-bottom: 0px;">
<br>
</p>
</blockquote>
<p>UpdateRecordSchedule takes a string for type, not a number. It
converts the string to a number for its internal use. It uses
recTypeFromString to do that
(<a class="moz-txt-link-freetext" href="https://github.com/MythTV/mythtv/blob/eea10424c0bbe65133120ff2899d20d8068e07f1/mythtv/libs/libmythbase/recordingtypes.cpp#L101">https://github.com/MythTV/mythtv/blob/eea10424c0bbe65133120ff2899d20d8068e07f1/mythtv/libs/libmythbase/recordingtypes.cpp#L101</a>
)</p>
<p>You can see from that routine that it allows various options, for
example "record all" or "all" (lower case, upper case or mixed)
will convert to kAllRecord (4). Note also that the default value
if you specify something that is not valid, is kDontRecord. If a
numeric value was supplied it would be defaulted to kDontRecord.<br>
</p>
<p>A lot of this is not documented, except by looking in the code.
Also a lot of it is not ideal. I can fix stuff that is broken or
wrong, but I want to avoid doing anything that will break somebody
else's use of the APIs.</p>
<p>Peter<br>
</p>
</body>
</html>