Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
1 commit merged into from

1 participant

@twinther

Just a simple PR to add support for using the thumbnail from the RSS channel element for all items that doesn't have an image.

@twinther

indent is fixed now.

@ghost ghost merged commit 9ff12dd into from
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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);
Something went wrong with that request. Please try again.