mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Add ability to delete synced items
This commit is contained in:
parent
718049b9f3
commit
a2eeda64df
10 changed files with 227 additions and 48 deletions
|
@ -2271,6 +2271,17 @@ class WebInterface(object):
|
|||
|
||||
return output
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
def delete_sync_rows(self, client_id, sync_id, **kwargs):
|
||||
if client_id and sync_id:
|
||||
plex_tv = plextv.PlexTV()
|
||||
delete_row = plex_tv.delete_sync(client_id=client_id, sync_id=sync_id)
|
||||
return {'message': 'Sync deleted'}
|
||||
else:
|
||||
return {'message': 'no data received'}
|
||||
|
||||
|
||||
##### Logs #####
|
||||
@cherrypy.expose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue