Permalink
Browse files

Fix updating of metadata info in RecordingRule.

Only set the metadata info from the RecordingInfo if it's not already
set.  This is should be a better fix than was commited in db12303.
  • Loading branch information...
1 parent 8a279eb commit 7aebf8caa18f22fdc7ccf48d6b0130deb6e175ca @gigem gigem committed May 15, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 mythtv/libs/libmythtv/recordingrule.cpp
@@ -675,8 +675,6 @@ void RecordingRule::AssignProgramInfo()
m_title = m_progInfo->GetTitle();
m_subtitle = m_progInfo->GetSubtitle();
m_description = m_progInfo->GetDescription();
- m_season = m_progInfo->GetSeason();
- m_episode = m_progInfo->GetEpisode();
m_channelid = m_progInfo->GetChanID();
m_station = m_progInfo->GetChannelSchedulingID();
m_startdate = m_progInfo->GetScheduledStartTime().date();
@@ -707,7 +705,13 @@ void RecordingRule::AssignProgramInfo()
}
}
m_category = m_progInfo->GetCategory();
- m_inetref = m_progInfo->GetInetRef();
+
+ if (m_inetref.isEmpty())
+ {
+ m_inetref = m_progInfo->GetInetRef();
+ m_season = m_progInfo->GetSeason();
+ m_episode = m_progInfo->GetEpisode();
+ }
}
unsigned RecordingRule::GetDefaultFilter(void)

0 comments on commit 7aebf8c

Please sign in to comment.