From ca77c1b83348382264bbe1acbedfa468f190bb98 Mon Sep 17 00:00:00 2001 From: lachlan Date: Thu, 14 Mar 2024 07:05:21 +1000 Subject: [PATCH] Update ampache.py --- src/ampache.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ampache.py b/src/ampache.py index 007e790..145f5d9 100644 --- a/src/ampache.py +++ b/src/ampache.py @@ -2200,14 +2200,15 @@ def search(self, rules, operator='and', object_type='song', offset=0, limit=0, r def search_group(self, rules, operator='and', object_type='all', offset=0, limit=0, random=0): - """ advanced_search - MINIMUM_API_VERSION=380001 + """ search_group + MINIMUM_API_VERSION=6.3.0 - Perform an advanced search given passed rules - the rules can occur multiple times and are joined by the operator item. + Perform a search given passed rules and return matching objects in a group. + If the rules to not exist for the object type or would return the entire table they will not return objects - Refer to the wiki for further information - http://ampache.org/api/api-advanced-search + Refer to the wiki for further information on rule_* types and data + https://ampache.org/api/api-xml-methods + https://ampache.org/api/api-json-methods INPUTS * rules = (array) = [[rule_1,rule_1_operator,rule_1_input],[rule_2,rule_2_operator,rule_2_input],[etc]]