@@ -1395,7 +1395,7 @@ def song_tags(self, filter_id: int):
13951395 return self .get_request (ampache_url , data , api_method )
13961396
13971397 def user_playlists (self , filter_str = False , exact = False , offset = 0 , limit = 0 ,
1398- sort = False , cond = False ):
1398+ sort = False , cond = False , include = False ):
13991399 """ user_playlists
14001400 MINIMUM_API_VERSION=6.3.0
14011401
@@ -1408,6 +1408,7 @@ def user_playlists(self, filter_str=False, exact=False, offset=0, limit=0,
14081408 * limit = (integer) //optional
14091409 * cond = (string) Filter the browse using ';' separated comma string pairs (e.g. 'filter1,value1;filter2,value2') //optional
14101410 * sort = (string) sort name / comma separated key pair. Default 'ASC' (e.g. 'name,ASC' and 'name' are the same) //optional
1411+ * include = (integer) 0,1, if true include playlist contents
14111412 """
14121413 ampache_url = self .AMPACHE_URL + '/server/' + self .AMPACHE_API + '.server.php'
14131414 api_method = 'user_playlists'
@@ -1418,7 +1419,8 @@ def user_playlists(self, filter_str=False, exact=False, offset=0, limit=0,
14181419 'offset' : str (offset ),
14191420 'limit' : str (limit ),
14201421 'sort' : sort ,
1421- 'cond' : cond }
1422+ 'cond' : cond ,
1423+ 'include' : include }
14221424 if not filter_str :
14231425 data .pop ('filter' )
14241426 if not exact :
@@ -1427,10 +1429,12 @@ def user_playlists(self, filter_str=False, exact=False, offset=0, limit=0,
14271429 data .pop ('sort' )
14281430 if not cond :
14291431 data .pop ('cond' )
1432+ if not include :
1433+ data .pop ('include' )
14301434 return self .get_request (ampache_url , data , api_method )
14311435
14321436 def user_smartlists (self , filter_str = False , exact = False , offset = 0 , limit = 0 ,
1433- sort = False , cond = False ):
1437+ sort = False , cond = False , include = False ):
14341438 """ user_smartlists
14351439 MINIMUM_API_VERSION=6.3.0
14361440
@@ -1443,6 +1447,7 @@ def user_smartlists(self, filter_str=False, exact=False, offset=0, limit=0,
14431447 * limit = (integer) //optional
14441448 * cond = (string) Filter the browse using ';' separated comma string pairs (e.g. 'filter1,value1;filter2,value2') //optional
14451449 * sort = (string) sort name / comma separated key pair. Default 'ASC' (e.g. 'name,ASC' and 'name' are the same) //optional
1450+ * include = (integer) 0,1, if true include playlist contents
14461451 """
14471452 ampache_url = self .AMPACHE_URL + '/server/' + self .AMPACHE_API + '.server.php'
14481453 api_method = 'user_smartlists'
@@ -1453,7 +1458,8 @@ def user_smartlists(self, filter_str=False, exact=False, offset=0, limit=0,
14531458 'offset' : str (offset ),
14541459 'limit' : str (limit ),
14551460 'sort' : sort ,
1456- 'cond' : cond }
1461+ 'cond' : cond ,
1462+ 'include' : include }
14571463 if not filter_str :
14581464 data .pop ('filter' )
14591465 if not exact :
@@ -1462,6 +1468,8 @@ def user_smartlists(self, filter_str=False, exact=False, offset=0, limit=0,
14621468 data .pop ('sort' )
14631469 if not cond :
14641470 data .pop ('cond' )
1471+ if not include :
1472+ data .pop ('include' )
14651473 return self .get_request (ampache_url , data , api_method )
14661474
14671475 def playlists (self , filter_str = False , exact = False , offset = 0 , limit = 0 , hide_search = False ,
0 commit comments