else if (season == 0)
label = g_localizeStrings.Get(20381);
else
- label.Format(g_localizeStrings.Get(20358), season);
+ label = StringUtils::Format(g_localizeStrings.Get(20358), season);
return GetThumb("season" + path + label, CProfilesManager::Get().GetVideoThumbFolder(), true);
}
CStdString CEdenVideoArtUpdater::GetCachedEpisodeThumb(const CFileItem &item)
{
// get the locally cached thumb
- CStdString strCRC;
- strCRC.Format("%sepisode%i", item.GetVideoInfoTag()->m_strFileNameAndPath.c_str(), item.GetVideoInfoTag()->m_iEpisode);
+ CStdString strCRC = StringUtils::Format("%sepisode%i",
+ item.GetVideoInfoTag()->m_strFileNameAndPath.c_str(),
+ item.GetVideoInfoTag()->m_iEpisode);
return GetThumb(strCRC, CProfilesManager::Get().GetVideoThumbFolder(), true);
}
CStdString thumb;
if (split)
{
- CStdString hex;
- hex.Format("%08x", (__int32)crc);
- thumb.Format("%c\\%08x.tbn", hex[0], (unsigned __int32)crc);
+ CStdString hex = StringUtils::Format("%08x", (__int32)crc);
+ thumb = StringUtils::Format("%c\\%08x.tbn", hex[0], (unsigned __int32)crc);
}
else
- thumb.Format("%08x.tbn", (unsigned __int32)crc);
+ thumb = StringUtils::Format("%08x.tbn", (unsigned __int32)crc);
return URIUtils::AddFileToFolder(path2, thumb);
}