@@ -1517,7 +1517,7 @@ def playlist_create(self, playlist_name, playlist_type):
15171517 return False
15181518 return self .return_data (ampache_response )
15191519
1520- def playlist_edit (self , filter_id : int , name = False ,
1520+ def playlist_edit (self , filter_id : int , playlist_name = False ,
15211521 playlist_type = False , owner = False , items = False , tracks = False ):
15221522 """ playlist_edit
15231523 MINIMUM_API_VERSION=400001
@@ -1526,22 +1526,22 @@ def playlist_edit(self, filter_id: int, name=False,
15261526
15271527 INPUTS
15281528 * filter_id = (integer)
1529- * name = (string) playlist name //optional
1529+ * playlist_name = (string) playlist name //optional
15301530 * playlist_type = (string) 'public'|'private' //optional
1531- * owner = (string) Change playlist owner to the user id (-1 = System playlist) //optional
1532- * items = (string) comma-separated song_id's (replaces existing items with a new id) //optional
1533- * tracks = (string) comma-separated playlisttrack numbers matched to 'items' in order //optional
1531+ * owner = (string) Change playlist owner to the user id (-1 = System playlist) //optional
1532+ * items = (string) comma-separated song_id's (replaces existing items with a new id) //optional
1533+ * tracks = (string) comma-separated playlisttrack numbers matched to 'items' in order //optional
15341534 """
15351535 ampache_url = self .AMPACHE_URL + '/server/' + self .AMPACHE_API + '.server.php'
15361536 data = {'action' : 'playlist_edit' ,
15371537 'auth' : self .AMPACHE_SESSION ,
15381538 'filter' : filter_id ,
1539- 'name' : name ,
1539+ 'name' : playlist_name ,
15401540 'type' : playlist_type ,
15411541 'owner' : owner ,
15421542 'items' : items ,
15431543 'tracks' : tracks }
1544- if not name :
1544+ if not playlist_name :
15451545 data .pop ('name' )
15461546 if not playlist_type :
15471547 data .pop ('type' )
@@ -4503,8 +4503,8 @@ def execute(self, method: str, params=None):
45034503 case 'playlist_delete' :
45044504 return self .playlist_delete (params ["filter_id" ])
45054505 case 'playlist_edit' :
4506- if not "name " in params :
4507- params ["name " ] = False
4506+ if not "playlist_name " in params :
4507+ params ["playlist_name " ] = False
45084508 if not "playlist_type" in params :
45094509 params ["playlist_type" ] = False
45104510 if not "owner" in params :
@@ -4513,7 +4513,7 @@ def execute(self, method: str, params=None):
45134513 params ["items" ] = False
45144514 if not "tracks" in params :
45154515 params ["tracks" ] = False
4516- return self .playlist_edit (params ["filter_id" ], params ["name " ], params ["playlist_type" ],
4516+ return self .playlist_edit (params ["filter_id" ], params ["playlist_name " ], params ["playlist_type" ],
45174517 params ["owner" ], params ["items" ], params ["tracks" ])
45184518 case 'playlist_generate' :
45194519 if not "mode" in params :
0 commit comments