mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add sortcut to /status/sessions
This commit is contained in:
parent
bf7e432c0c
commit
63814584e9
4 changed files with 15 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue