Skip to content
Browse files

jsonrpc: image URLs in the "art" property need to be in image://<url-…

…encoded-path> format
  • Loading branch information...
1 parent db763c4 commit 2360924f859835bedff308d708713f251660e024 @Montellese Montellese committed Oct 13, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 xbmc/interfaces/json-rpc/FileItemHandler.cpp
View
7 xbmc/interfaces/json-rpc/FileItemHandler.cpp
@@ -95,7 +95,12 @@ bool CFileItemHandler::GetField(const std::string &field, const CVariant &info,
fetchedArt = true;
}
- result["art"] = item->GetArt();
+ CGUIListItem::ArtMap artMap = item->GetArt();
+ CVariant artObj(CVariant::VariantTypeObject);
+ for (CGUIListItem::ArtMap::const_iterator artIt = artMap.begin(); artIt != artMap.end(); artIt++)
+ artObj[artIt->first] = CTextureCache::GetWrappedImageURL(artIt->second);
+
+ result["art"] = artObj;
return true;
}

1 comment on commit 2360924

@MartijnKaijser
Team Kodi member

@jmarshallnz
Do we have to URL encode the url when we set Art?

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