Fix purge library from the edit modal

This commit is contained in:
JonnyWong16 2020-09-10 08:35:26 -07:00
parent 68946ceede
commit 02658759ea
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
4 changed files with 8 additions and 23 deletions

View file

@ -628,7 +628,8 @@ class WebInterface(object):
result = None
status_message = 'An error occured.'
return serve_template(templatename="edit_library.html", title="Edit Library", data=result, status_message=status_message)
return serve_template(templatename="edit_library.html", title="Edit Library",
data=result, server_id=plexpy.CONFIG.PMS_IDENTIFIER, status_message=status_message)
@cherrypy.expose
@requireAuth(member_of("admin"))
@ -1015,10 +1016,10 @@ class WebInterface(object):
```
Required parameters:
server_id (str): The Plex server identifier of the library section
section_id (str): The id of the Plex library section
Optional parameters:
server_id (str): The Plex server identifier of the library section
row_ids (str): Comma separated row ids to delete, e.g. "2,3,8"
Returns:
@ -1044,10 +1045,10 @@ class WebInterface(object):
```
Required parameters:
server_id (str): The Plex server identifier of the library section
section_id (str): The id of the Plex library section
Optional parameters:
server_id (str): The Plex server identifier of the library section
row_ids (str): Comma separated row ids to delete, e.g. "2,3,8"
Returns: