Add sortcut to /status/sessions

This commit is contained in:
JonnyWong16 2017-12-31 17:37:07 -08:00
commit 63814584e9
4 changed files with 15 additions and 1 deletions

View file

@ -263,6 +263,12 @@ class WebInterface(object):
else:
return {'result': 'error', 'message': 'Failed to terminate session.'}
@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of("admin"))
def return_sessions_url(self, **kwargs):
return plexpy.CONFIG.PMS_URL + '/status/sessions?X-Plex-Token=' + plexpy.CONFIG.PMS_TOKEN
@cherrypy.expose
@requireAuth()
def home_stats(self, time_range=30, stats_type=0, stats_count=10, **kwargs):