Make library delete server_id optional

This commit is contained in:
JonnyWong16 2020-04-10 14:03:32 -07:00
parent 6a87dc9c40
commit 899d2fbf9d
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 6 additions and 4 deletions

View file

@ -1040,7 +1040,8 @@ class Libraries(object):
purge_only=purge_only))
return all(success)
elif server_id and str(section_id).isdigit():
elif str(section_id).isdigit():
server_id = server_id or plexpy.CONFIG.PMS_IDENTIFIER
database.delete_library_history(server_id=server_id, section_id=section_id)
if purge_only:
return True