bool CPVRRecording::Rename(const CStdString &strNewName)
{
- m_strTitle.Format("%s", strNewName);
+ m_strTitle = StringUtils::Format("%s", strNewName.c_str());
PVR_ERROR error = g_PVRClients->RenameRecording(*this);
if (error != PVR_ERROR_NO_ERROR)
{
m_resumePoint.totalTimeInSeconds = tag.m_resumePoint.totalTimeInSeconds;
}
- CStdString strShow;
- strShow.Format("%s - ", g_localizeStrings.Get(20364).c_str());
+ CStdString strShow = StringUtils::Format("%s - ", g_localizeStrings.Get(20364).c_str());
if (m_strPlotOutline.Left(strShow.size()).Equals(strShow))
{
CStdString strEpisode = m_strPlotOutline;
int pos = strTitle.ReverseFind('/');
strTitle.erase(0, pos + 1);
strEpisode.erase(0, strShow.size());
- m_strTitle.Format("%s - %s", strTitle.c_str(), strEpisode);
+ m_strTitle = StringUtils::Format("%s - %s", strTitle.c_str(), strEpisode.c_str());
pos = strEpisode.Find('-');
strEpisode.erase(0, pos + 2);
m_strPlotOutline = strEpisode;
strTitle.Replace('/',' ');
if (!m_strDirectory.IsEmpty())
- strDirectory.Format("%s/", m_strDirectory.c_str());
+ strDirectory = StringUtils::Format("%s/", m_strDirectory.c_str());
if (!m_strChannelName.IsEmpty())
- strChannel.Format(" (%s)", m_strChannelName.c_str());
- m_strFileNameAndPath.Format("pvr://recordings/%s%s, TV%s, %s.pvr", strDirectory.c_str(), strTitle.c_str(), strChannel.c_str(), strDatetime.c_str());
+ strChannel = StringUtils::Format(" (%s)", m_strChannelName.c_str());
+ m_strFileNameAndPath = StringUtils::Format("pvr://recordings/%s%s, TV%s, %s.pvr", strDirectory.c_str(), strTitle.c_str(), strChannel.c_str(), strDatetime.c_str());
}
}