mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 17:22:56 -07:00
Make library delete server_id optional
This commit is contained in:
parent
6a87dc9c40
commit
899d2fbf9d
3 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue