Skip to content

Commit a38f191

Browse files
author
Robert McNamara
committed
Rec types from string need a kNotRecording too.
This fixes the inability to set recording rules to this value via the API
1 parent 59be832 commit a38f191

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mythtv/libs/libmyth/recordingtypes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ QString toRawString(RecordingType rectype)
8383

8484
RecordingType recTypeFromString(QString type)
8585
{
86+
if (type.toLower() == "not recording" || type.toLower() == "not")
87+
return kNotRecording;
8688
if (type.toLower() == "single record" || type.toLower() == "single")
8789
return kSingleRecord;
8890
else if (type.toLower() == "record daily" || type.toLower() == "daily")

0 commit comments

Comments
 (0)