void CFileItem::FillInDefaultIcon()
{
+ if (URIUtils::IsPVRGuideItem(m_strPath))
+ {
+ // epg items never have a default icon. no need to execute this expensive method.
+ // when filling epg grid window, easily tens of thousands of epg items are processed.
+ return;
+ }
+
//CLog::Log(LOGINFO, "FillInDefaultIcon(%s)", pItem->GetLabel().c_str());
// find the default icon for a file or folder item
// for files this can be the (depending on the file type)
return StringUtils::StartsWithNoCase(strFile2, "pvr://channels");
}
+bool URIUtils::IsPVRGuideItem(const std::string& strFile)
+{
+ if (IsStack(strFile))
+ return IsPVRGuideItem(CStackDirectory::GetFirstStackedFile(strFile));
+
+ return StringUtils::StartsWithNoCase(strFile, "pvr://guide");
+}
+
bool URIUtils::IsDAV(const std::string& strFile)
{
if (IsStack(strFile))
static bool IsLibraryFolder(const std::string& strFile);
static bool IsLibraryContent(const std::string& strFile);
static bool IsPVRChannel(const std::string& strFile);
+ static bool IsPVRGuideItem(const std::string& strFile);
static bool IsUsingFastSwitch(const std::string& strFile);
static void AddSlashAtEnd(std::string& strFolder);