mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Proxy PMS downloads json through server
This commit is contained in:
parent
d943877e76
commit
b7937b8740
4 changed files with 27 additions and 23 deletions
|
@ -3423,6 +3423,14 @@ class WebInterface(object):
|
|||
if not response.ok:
|
||||
cherrypy.response.status = 401
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
def get_pms_downloads(self, update_channel, **kwargs):
|
||||
plex_tv = plextv.PlexTV()
|
||||
downloads = plex_tv.get_plex_downloads(update_channel=update_channel)
|
||||
return downloads
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
|
@ -3471,8 +3479,7 @@ class WebInterface(object):
|
|||
plexpy.CONFIG.PMS_PLATFORM, plexpy.CONFIG.PMS_PLATFORM),
|
||||
'pms_update_channel': plexpy.CONFIG.PMS_UPDATE_CHANNEL,
|
||||
'pms_update_distro': plexpy.CONFIG.PMS_UPDATE_DISTRO,
|
||||
'pms_update_distro_build': plexpy.CONFIG.PMS_UPDATE_DISTRO_BUILD,
|
||||
'plex_update_channel': 'plexpass' if update_channel == 'beta' else 'public'}
|
||||
'pms_update_distro_build': plexpy.CONFIG.PMS_UPDATE_DISTRO_BUILD}
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
|
@ -6423,7 +6430,7 @@ class WebInterface(object):
|
|||
```
|
||||
"""
|
||||
plex_tv = plextv.PlexTV()
|
||||
result = plex_tv.get_plex_downloads()
|
||||
result = plex_tv.get_plex_update()
|
||||
return result
|
||||
|
||||
@cherrypy.expose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue