This commit is contained in:
Hellowlol 2017-02-27 01:35:22 +01:00
parent 351fe3565d
commit a4abc0e223
2 changed files with 1 additions and 2 deletions

View file

@ -265,7 +265,6 @@ class Session(PlexObject):
self.location = data.attrib.get('location')
@utils.registerPlexObject
class TranscodeSession(PlexObject):
""" Represents a current transcode session.

View file

@ -184,7 +184,7 @@ class PlexServer(PlexObject):
port = elem.attrib.get('port')
if port is None:
log.debug("%s didn't provide a port. Checking https://plex.tv/devices.xml" % elem.attrib.get('name'))
data = cache_resource or self._server._session.get('https://plex.tv/devices.xml?X-Plex-Token=%s' % self.token)
data = cache_resource or self._server._session.get('https://plex.tv/devices.xml?X-Plex-Token=%s' % self.token) # noqa
cache_resource = data
resources = MyPlexResource(self, data)
for resource in resources: