aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2018-01-02 00:03:26 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2018-01-02 00:03:26 +0100
commitb94b56b984f8b3451ff3e8dac81af6c4a3670d32 (patch)
treea86fe8e95e4b4f0405f5812561300e5e4c726cf9
parent576867543bc358cb7611323ac2d425987f3570e3 (diff)
[PVR] CFileItem: Add default icons for tv/radio channels.
-rw-r--r--xbmc/FileItem.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/xbmc/FileItem.cpp b/xbmc/FileItem.cpp
index 57b4f8c9ca..6215b771fc 100644
--- a/xbmc/FileItem.cpp
+++ b/xbmc/FileItem.cpp
@@ -185,6 +185,10 @@ CFileItem::CFileItem(const CPVRChannelPtr& channel)
if (!channel->IconPath().empty())
SetIconImage(channel->IconPath());
+ else if (channel->IsRadio())
+ SetIconImage("DefaultAudio.png");
+ else
+ SetIconImage("DefaultTVShows.png");
SetProperty("channelid", channel->ChannelID());
SetProperty("path", channel->Path());
@@ -1300,12 +1304,12 @@ void CFileItem::FillInDefaultIcon()
if (GetPVRChannelInfoTag()->IsRadio())
SetIconImage("DefaultAudio.png");
else
- SetIconImage("DefaultVideo.png");
+ SetIconImage("DefaultTVShows.png");
}
else if ( IsLiveTV() )
{
// Live TV Channel
- SetIconImage("DefaultVideo.png");
+ SetIconImage("DefaultTVShows.png");
}
else if ( URIUtils::IsArchive(m_strPath) )
{ // archive