jsonrpc: remove optional "albums" parameter from AudioLibrary.GetRecentlyAddedAlbums...
authormontellese <montellese@xbmc.org>
Fri, 7 Oct 2011 22:07:18 +0000 (00:07 +0200)
committermontellese <montellese@xbmc.org>
Sat, 8 Oct 2011 10:00:04 +0000 (12:00 +0200)
xbmc/interfaces/json-rpc/AudioLibrary.cpp
xbmc/interfaces/json-rpc/ServiceDescription.h
xbmc/interfaces/json-rpc/methods.json

index 9fa535d..07738b0 100644 (file)
@@ -176,12 +176,8 @@ JSON_STATUS CAudioLibrary::GetRecentlyAddedAlbums(const CStdString &method, ITra
   if (!musicdatabase.Open())
     return InternalError;
 
-  int amount = (int)parameterObject["albums"].asInteger();
-  if (amount < 0)
-    amount = 0;
-
   VECALBUMS albums;
-  if (musicdatabase.GetRecentlyAddedAlbums(albums, (unsigned int)amount))
+  if (musicdatabase.GetRecentlyAddedAlbums(albums))
   {
     CFileItemList items;
 
index bc63e1b..a18ab69 100644 (file)
@@ -1446,7 +1446,6 @@ namespace JSONRPC
       "\"transport\": \"Response\","
       "\"permission\": \"ReadData\","
       "\"params\": ["
-        "{ \"name\": \"albums\", \"$ref\": \"List.Amount\" },"
         "{ \"name\": \"properties\", \"$ref\": \"Audio.Fields.Album\" },"
         "{ \"name\": \"limits\", \"$ref\": \"List.Limits\" },"
         "{ \"name\": \"sort\", \"$ref\": \"List.Sort\" }"
index 4a4b6c3..232402a 100644 (file)
     "transport": "Response",
     "permission": "ReadData",
     "params": [
-      { "name": "albums", "$ref": "List.Amount" },
       { "name": "properties", "$ref": "Audio.Fields.Album" },
       { "name": "limits", "$ref": "List.Limits" },
       { "name": "sort", "$ref": "List.Sort" }