Add ability to delete synced items

This commit is contained in:
JonnyWong16 2017-11-11 19:41:51 -08:00
parent 718049b9f3
commit a2eeda64df
10 changed files with 227 additions and 48 deletions

View file

@ -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