Permalink
Browse files

Use RSS channel image if the RSS item doesn't have one

  • Loading branch information...
1 parent 98306ce commit 138c87c0a2a13ac0a490ddbb3a48b0c45481e048 @twinther twinther committed Oct 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/filesystem/RSSDirectory.cpp
@@ -629,6 +629,11 @@ bool CRSSDirectory::GetDirectory(const CStdString& path, CFileItemList &items)
ParseItem(item.get(), child, path);
item->SetProperty("isrss", "1");
+ // Use channel image if item doesn't have one
+ if(item->GetThumbnailImage().IsEmpty() && !items.GetThumbnailImage().IsEmpty())
+ {
+ item->SetThumbnailImage(items.GetThumbnailImage());
+ }
if (!item->GetPath().IsEmpty())
items.Add(item);

0 comments on commit 138c87c

Please sign in to comment.