mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Add location, relayed, and secure to get_history response
This commit is contained in:
parent
484c7ed4a2
commit
12dddc2d89
2 changed files with 16 additions and 1 deletions
|
@ -101,6 +101,9 @@ class DataFactory(object):
|
||||||
'player',
|
'player',
|
||||||
'ip_address',
|
'ip_address',
|
||||||
'machine_id',
|
'machine_id',
|
||||||
|
'location',
|
||||||
|
'secure',
|
||||||
|
'relayed',
|
||||||
'session_history.media_type',
|
'session_history.media_type',
|
||||||
'(CASE WHEN session_history_metadata.live = 1 THEN "live" ELSE session_history.media_type END) \
|
'(CASE WHEN session_history_metadata.live = 1 THEN "live" ELSE session_history.media_type END) \
|
||||||
AS media_type_live',
|
AS media_type_live',
|
||||||
|
@ -156,6 +159,9 @@ class DataFactory(object):
|
||||||
'player',
|
'player',
|
||||||
'ip_address',
|
'ip_address',
|
||||||
'machine_id',
|
'machine_id',
|
||||||
|
'location',
|
||||||
|
'secure',
|
||||||
|
'relayed',
|
||||||
'media_type',
|
'media_type',
|
||||||
'(CASE WHEN live = 1 THEN "live" ELSE media_type END) AS media_type_live',
|
'(CASE WHEN live = 1 THEN "live" ELSE media_type END) AS media_type_live',
|
||||||
'rating_key',
|
'rating_key',
|
||||||
|
@ -271,6 +277,9 @@ class DataFactory(object):
|
||||||
'ip_address': item['ip_address'],
|
'ip_address': item['ip_address'],
|
||||||
'live': item['live'],
|
'live': item['live'],
|
||||||
'machine_id': item['machine_id'],
|
'machine_id': item['machine_id'],
|
||||||
|
'location': item['location'],
|
||||||
|
'secure': item['secure'],
|
||||||
|
'relayed': item['relayed'],
|
||||||
'media_type': item['media_type'],
|
'media_type': item['media_type'],
|
||||||
'rating_key': item['rating_key'],
|
'rating_key': item['rating_key'],
|
||||||
'parent_rating_key': item['parent_rating_key'],
|
'parent_rating_key': item['parent_rating_key'],
|
||||||
|
|
|
@ -1920,6 +1920,7 @@ class WebInterface(object):
|
||||||
"guid": "com.plexapp.agents.thetvdb://121361/6/1?lang=en",
|
"guid": "com.plexapp.agents.thetvdb://121361/6/1?lang=en",
|
||||||
"ip_address": "xxx.xxx.xxx.xxx",
|
"ip_address": "xxx.xxx.xxx.xxx",
|
||||||
"live": 0,
|
"live": 0,
|
||||||
|
"location": "wan",
|
||||||
"machine_id": "lmd93nkn12k29j2lnm",
|
"machine_id": "lmd93nkn12k29j2lnm",
|
||||||
"media_index": 17,
|
"media_index": 17,
|
||||||
"media_type": "episode",
|
"media_type": "episode",
|
||||||
|
@ -1934,7 +1935,9 @@ class WebInterface(object):
|
||||||
"player": "Castle-PC",
|
"player": "Castle-PC",
|
||||||
"rating_key": 4348,
|
"rating_key": 4348,
|
||||||
"reference_id": 1123,
|
"reference_id": 1123,
|
||||||
|
"relayed": 0,
|
||||||
"row_id": 1124,
|
"row_id": 1124,
|
||||||
|
"secure": 1,
|
||||||
"session_key": null,
|
"session_key": null,
|
||||||
"started": 1462688107,
|
"started": 1462688107,
|
||||||
"state": null,
|
"state": null,
|
||||||
|
@ -2130,7 +2133,10 @@ class WebInterface(object):
|
||||||
if not helpers.is_valid_ip(ip_address):
|
if not helpers.is_valid_ip(ip_address):
|
||||||
ip_address = None
|
ip_address = None
|
||||||
|
|
||||||
return serve_template(templatename="ip_address_modal.html", title="IP Address Details", data=ip_address)
|
public = helpers.is_public_ip(ip_address)
|
||||||
|
|
||||||
|
return serve_template(templatename="ip_address_modal.html", title="IP Address Details",
|
||||||
|
data=ip_address, public=public, kwargs=kwargs)
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue