Skip to content
Browse files

Merge pull request #1528 from twinther/rss-reuse-thumbnail

Use RSS channel image if the RSS item doesn't have one
  • Loading branch information...
2 parents 6274eb5 + 138c87c commit 9ff12dd36e6ba8affc36ad5b58d5b5e1f1ce7205 Arne Morten Kvarving committed Oct 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 xbmc/filesystem/RSSDirectory.cpp
View
5 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 9ff12dd

Please sign in to comment.
Something went wrong with that request. Please try again.