Skip to content

Commit 3af2a5a

Browse files
committed
Add support for relay
1 parent 30ec806 commit 3af2a5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plexapi/myplex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class MyPlexResource(PlexObject):
537537
synced (bool): Unknown (possibly True if the resource has synced content?)
538538
"""
539539
TAG = 'Device'
540-
key = 'https://plex.tv/api/resources?includeHttps=1'
540+
key = 'https://plex.tv/api/resources?includeHttps=1&includeRelay=1'
541541

542542
def _loadData(self, data):
543543
self._data = data
@@ -615,6 +615,7 @@ def _loadData(self, data):
615615
self.uri = data.attrib.get('uri')
616616
self.local = utils.cast(bool, data.attrib.get('local'))
617617
self.httpuri = 'http://%s:%s' % (self.address, self.port)
618+
self.relay = utils.cast(bool, data.attrib.get('relay'))
618619

619620

620621
class MyPlexDevice(PlexObject):

0 commit comments

Comments
 (0)