Identify if a stream is using Plex Relay

This commit is contained in:
JonnyWong16 2018-02-27 20:03:31 -08:00
parent 8620546d07
commit b87eb68bdd
4 changed files with 20 additions and 10 deletions

View file

@ -1404,6 +1404,10 @@ class PmsConnect(object):
'location': 'wan' if player_details['local'] == '0' else 'lan'
}
# Check if using Plex Relay
session_details['relay'] = int(session_details['location'] != 'lan'
and player_details['ip_address_public'] == '127.0.0.1')
# Get the transcode details
if session.getElementsByTagName('TranscodeSession'):
transcode_info = session.getElementsByTagName('TranscodeSession')[0]

View file

@ -4706,6 +4706,7 @@ class WebInterface(object):
"quality_profile": "Original",
"rating": "7.8",
"rating_key": "153037",
"relay": 0,
"section_id": "2",
"session_id": "helf15l3rxgw01xxe0jf3l3d",
"session_key": "27",