Skip to content

Commit

Permalink
fix more DVR service issues.
Browse files Browse the repository at this point in the history
I could have sworn I'd tested this all better, but thinking back, I
think I mainly focused on recurring rules with UpdateRecordSchedule()
and assumed AddRecordSchedule() also worked since they are almost
identical.

Fixes #11753
  • Loading branch information
gigem committed Aug 19, 2013
1 parent a3cdcf5 commit 763c7ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mythtv/programs/mythbackend/services/dvr.cpp
Expand Up @@ -583,6 +583,7 @@ uint Dvr::AddRecordSchedule (
rule.m_seriesid = sSeriesId;
rule.m_programid = sProgramId;

rule.m_channelid = nChanId;
rule.m_station = sStation;

rule.m_findday = nFindDay;
Expand Down Expand Up @@ -727,20 +728,21 @@ bool Dvr::UpdateRecordSchedule ( uint nRecordId,
pRule.m_description = sDescription;

if (!sCategory.isEmpty())
pRule.m_category = sCategory;
pRule.m_category = sCategory;

if (!sSeriesId.isEmpty())
pRule.m_seriesid = sSeriesId;

if (!sProgramId.isEmpty())
pRule.m_programid = sProgramId;

if (nChanId)
pRule.m_channelid = nChanId;
if (!sStation.isEmpty())
pRule.m_station = sStation;

pRule.m_startdate = recstartts.date();
pRule.m_starttime = recstartts.time();

pRule.m_enddate = recendts.date();
pRule.m_endtime = recendts.time();

Expand Down

0 comments on commit 763c7ca

Please sign in to comment.