diff options
author | Sam Stenvall <neggelandia@gmail.com> | 2014-05-27 15:13:04 +0300 |
---|---|---|
committer | Sam Stenvall <neggelandia@gmail.com> | 2014-05-27 15:13:04 +0300 |
commit | c9bbad547692b24a291334ede54a920072d6600d (patch) | |
tree | d4f4239cfcbff3722a85f689c922433d6f3dfa13 | |
parent | 5c08c682a7aaec202488ab68f5eba796fe443a45 (diff) | |
parent | eae3aef989672e7b1b3625e983db41b1db26ed9a (diff) |
Merge pull request #4401 from Jalle19/fix-recording-thumbnail
Fall back to using channel icon as thumbnail for recordings
-rw-r--r-- | xbmc/pvr/recordings/PVRRecordings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/pvr/recordings/PVRRecordings.cpp b/xbmc/pvr/recordings/PVRRecordings.cpp index 7859d1681f..d65a953968 100644 --- a/xbmc/pvr/recordings/PVRRecordings.cpp +++ b/xbmc/pvr/recordings/PVRRecordings.cpp @@ -113,14 +113,21 @@ void CPVRRecordings::GetContents(const CStdString &strDirectory, CFileItemList * pFileItem->m_dateTime = current->RecordingTimeAsLocalTime(); pFileItem->SetPath(current->m_strFileNameAndPath); + // Set art if (!current->m_strIconPath.empty()) + { pFileItem->SetIconImage(current->m_strIconPath); + pFileItem->SetArt("icon", current->m_strIconPath); + } if (!current->m_strThumbnailPath.empty()) pFileItem->SetArt("thumb", current->m_strThumbnailPath); if (!current->m_strFanartPath.empty()) pFileItem->SetArt("fanart", current->m_strFanartPath); + + // Use the channel icon as a fallback when a thumbnail is not available + pFileItem->SetArtFallback("thumb", "icon"); pFileItem->SetOverlayImage(CGUIListItem::ICON_OVERLAY_UNWATCHED, pFileItem->GetPVRRecordingInfoTag()->m_playCount > 0); |