Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2248 from Tolriq/compilationartist

jsonrpc: add compilationartist property to AudioLibrary.GetArtists
  • Loading branch information...
commit cc985c8007ce607f72457b59bcfad274022a0c32 2 parents fb7811d + 50b22ba
@Montellese Montellese authored
View
1  xbmc/interfaces/json-rpc/FileItemHandler.cpp
@@ -233,7 +233,6 @@ void CFileItemHandler::HandleFileItemList(const char *ID, bool allowFile, const
for (int i = start; i < end; i++)
{
- CVariant object;
CFileItemPtr item = items.Get(i);
HandleFileItem(ID, allowFile, resultname, item, parameterObject, fields, result, true, thumbLoader);
}
View
3  xbmc/interfaces/json-rpc/ServiceDescription.h
@@ -413,7 +413,7 @@ namespace JSONRPC
"\"enum\": [ \"instrument\", \"style\", \"mood\", \"born\", \"formed\","
"\"description\", \"genre\", \"died\", \"disbanded\","
"\"yearsactive\", \"musicbrainzartistid\", \"fanart\","
- "\"thumbnail\" ]"
+ "\"compilationartist\", \"thumbnail\" ]"
"}"
"}",
"\"Audio.Fields.Album\": {"
@@ -474,6 +474,7 @@ namespace JSONRPC
"\"died\": { \"type\": \"string\" },"
"\"disbanded\": { \"type\": \"string\" },"
"\"yearsactive\": { \"$ref\": \"Array.String\" },"
+ "\"compilationartist\": { \"type\": \"boolean\" },"
"\"musicbrainzartistid\": { \"type\": \"string\" }"
"}"
"}",
View
3  xbmc/interfaces/json-rpc/types.json
@@ -386,7 +386,7 @@
"enum": [ "instrument", "style", "mood", "born", "formed",
"description", "genre", "died", "disbanded",
"yearsactive", "musicbrainzartistid", "fanart",
- "thumbnail" ]
+ "thumbnail", "compilationartist" ]
}
},
"Audio.Fields.Album": {
@@ -447,6 +447,7 @@
"died": { "type": "string" },
"disbanded": { "type": "string" },
"yearsactive": { "$ref": "Array.String" },
+ "compilationartist": { "type": "boolean" },
"musicbrainzartistid": { "type": "string" }
}
},
View
1  xbmc/music/tags/MusicInfoTag.cpp
@@ -591,6 +591,7 @@ void CMusicInfoTag::Serialize(CVariant& value) const
value["lastplayed"] = m_lastPlayed.IsValid() ? m_lastPlayed.GetAsDBDateTime() : StringUtils::EmptyString;
value["lyrics"] = m_strLyrics;
value["albumid"] = m_iAlbumId;
+ value["compilationartist"] = m_bCompilation;
}
void CMusicInfoTag::ToSortable(SortItem& sortable)
Please sign in to comment.
Something went wrong with that request. Please try again.