mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Return error result for delete_synced_item
This commit is contained in:
parent
775616b52d
commit
0868fa749d
2 changed files with 8 additions and 4 deletions
|
@ -387,11 +387,11 @@ class PlexTV(object):
|
|||
|
||||
return request
|
||||
|
||||
def delete_plextv_sync(self, client_id='', sync_id='', output_format=''):
|
||||
def delete_plextv_sync(self, client_id='', sync_id=''):
|
||||
uri = '/devices/%s/sync_items/%s' % (client_id, sync_id)
|
||||
request = self.request_handler.make_request(uri=uri,
|
||||
request_type='DELETE',
|
||||
output_format=output_format)
|
||||
return_response=True)
|
||||
|
||||
return request
|
||||
|
||||
|
@ -649,7 +649,8 @@ class PlexTV(object):
|
|||
|
||||
def delete_sync(self, client_id, sync_id):
|
||||
logger.info("Tautulli PlexTV :: Deleting sync item '%s'." % sync_id)
|
||||
self.delete_plextv_sync(client_id=client_id, sync_id=sync_id)
|
||||
response = self.delete_plextv_sync(client_id=client_id, sync_id=sync_id)
|
||||
return response.ok
|
||||
|
||||
def get_server_connections(self, pms_identifier='', pms_ip='', pms_port=32400, include_https=True):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue