Skip to content

Commit

Permalink
Fix issue with daily and weekly, manual, recording rules.
Browse files Browse the repository at this point in the history
Commit 5f6697e removed the setting of subtitle to the recording time.
That broke duplicate checking in most cases.  This change forces all
future rules to use no duplicate checking.

(cherry picked from commit a281910)
  • Loading branch information
gigem committed Aug 16, 2020
1 parent 3322b37 commit fb389f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions mythtv/programs/mythbackend/services/dvr.cpp
Expand Up @@ -1141,7 +1141,10 @@ uint Dvr::AddRecordSchedule (

rule.m_type = recTypeFromString(sType);
rule.m_searchType = searchTypeFromString(sSearchType);
rule.m_dupMethod = dupMethodFromString(sDupMethod);
if (rule.m_searchType == kManualSearch)
rule.m_dupMethod = kDupCheckNone;
else
rule.m_dupMethod = dupMethodFromString(sDupMethod);
rule.m_dupIn = dupInFromString(sDupIn);

if (sRecProfile.isEmpty())
Expand Down Expand Up @@ -1284,7 +1287,10 @@ bool Dvr::UpdateRecordSchedule ( uint nRecordId,

pRule.m_type = recTypeFromString(sType);
pRule.m_searchType = searchTypeFromString(sSearchType);
pRule.m_dupMethod = dupMethodFromString(sDupMethod);
if (pRule.m_searchType == kManualSearch)
pRule.m_dupMethod = kDupCheckNone;
else
pRule.m_dupMethod = dupMethodFromString(sDupMethod);
pRule.m_dupIn = dupInFromString(sDupIn);

if (sRecProfile.isEmpty())
Expand Down
1 change: 1 addition & 0 deletions mythtv/programs/mythfrontend/manualschedule.cpp
Expand Up @@ -219,6 +219,7 @@ void ManualSchedule::recordClicked(void)
auto *record = new RecordingRule();
record->LoadByProgram(&p);
record->m_searchType = kManualSearch;
record->m_dupMethod = kDupCheckNone;

MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
auto *schededit = new ScheduleEditor(mainStack, record);
Expand Down
5 changes: 4 additions & 1 deletion mythtv/programs/mythfrontend/scheduleeditor.cpp
Expand Up @@ -2138,6 +2138,7 @@ void SchedOptMixin::RuleChanged(void)
m_rule->m_type != kDontRecord);
bool isSingle = (m_rule->m_type == kSingleRecord ||
m_rule->m_type == kOverrideRecord);
bool isManual = (m_rule->m_searchType == kManualSearch);

if (m_prioritySpin)
m_prioritySpin->SetEnabled(isScheduled);
Expand All @@ -2146,7 +2147,9 @@ void SchedOptMixin::RuleChanged(void)
if (m_endoffsetSpin)
m_endoffsetSpin->SetEnabled(isScheduled);
if (m_dupmethodList)
m_dupmethodList->SetEnabled(isScheduled && !isSingle);
m_dupmethodList->SetEnabled(
isScheduled && !isSingle &&
(!isManual || m_rule->m_dupMethod != kDupCheckNone));
if (m_dupscopeList)
m_dupscopeList->SetEnabled(isScheduled && !isSingle &&
m_rule->m_dupMethod != kDupCheckNone);
Expand Down

0 comments on commit fb389f2

Please sign in to comment.