Permalink
Browse files

jsonrpc: remove "max" from List.Sort as it is not a sorting method

  • Loading branch information...
1 parent 489c297 commit 4b8666f4ae93a01499273447171a05c8814d0dd7 @Montellese Montellese committed Jan 31, 2012
@@ -337,8 +337,6 @@ bool CFileItemHandler::ParseSortMethods(const CStdString &method, const bool &ig
sortmethod = SORT_METHOD_PLAYCOUNT;
else if (method.Equals("unsorted"))
sortmethod = SORT_METHOD_UNSORTED;
- else if (method.Equals("max"))
- sortmethod = SORT_METHOD_MAX;
else
return false;
@@ -656,7 +656,7 @@ namespace JSONRPC
"\"enum\": [ \"none\", \"label\", \"date\", \"size\", \"file\", \"drivetype\", \"track\", \"duration\", \"title\", \"artist\","
"\"album\", \"genre\", \"year\", \"videorating\", \"programcount\", \"playlist\", \"episode\", \"videotitle\","
"\"sorttitle\", \"productioncode\", \"songrating\", \"mpaarating\", \"videoruntime\", \"studio\", \"fullpath\","
- "\"lastplayed\", \"unsorted\", \"max\" ]"
+ "\"lastplayed\", \"unsorted\" ]"
"},"
"\"order\": { \"type\": \"string\", \"default\": \"ascending\", \"enum\": [ \"ascending\", \"descending\" ] },"
"\"ignorearticle\": { \"type\": \"boolean\", \"default\": false }"
@@ -628,7 +628,7 @@
"enum": [ "none", "label", "date", "size", "file", "drivetype", "track", "duration", "title", "artist",
"album", "genre", "year", "videorating", "programcount", "playlist", "episode", "videotitle",
"sorttitle", "productioncode", "songrating", "mpaarating", "videoruntime", "studio", "fullpath",
- "lastplayed", "unsorted", "max" ]
+ "lastplayed", "unsorted" ]
},
"order": { "type": "string", "default": "ascending", "enum": [ "ascending", "descending" ] },
"ignorearticle": { "type": "boolean", "default": false }

0 comments on commit 4b8666f

Please sign in to comment.