aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2013-06-12 22:50:02 +0200
committermontellese <montellese@xbmc.org>2013-06-12 23:11:41 +0200
commit9952d2fa994d99f12193d0905a25d122bf404c70 (patch)
treee0eb697cd3e3a8794b822cfb5838b5a4e3694dcd
parentd1e3333b5781a2d9b06aee628f9ed179e1350bcd (diff)
jsonrpc: use "song" as default value for "type" property
-rw-r--r--xbmc/interfaces/json-rpc/FileItemHandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xbmc/interfaces/json-rpc/FileItemHandler.cpp b/xbmc/interfaces/json-rpc/FileItemHandler.cpp
index a6af66f876..7dfc3227ca 100644
--- a/xbmc/interfaces/json-rpc/FileItemHandler.cpp
+++ b/xbmc/interfaces/json-rpc/FileItemHandler.cpp
@@ -288,11 +288,13 @@ void CFileItemHandler::HandleFileItem(const char *ID, bool allowFile, const char
{
if (item->HasPVRChannelInfoTag())
object["type"] = "channel";
- else if (item->HasMusicInfoTag() && !item->GetMusicInfoTag()->GetType().empty())
+ else if (item->HasMusicInfoTag())
{
std::string type = item->GetMusicInfoTag()->GetType();
- if (type == "album" || type == "song")
+ if (type == "album" || type == "song" || type == "artist")
object["type"] = type;
+ else
+ object["type"] = "song";
}
else if (item->HasVideoInfoTag() && !item->GetVideoInfoTag()->m_type.empty())
{