mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
fix my fix of my bug... comment out server updatedat.
This commit is contained in:
parent
ba9e7c6fe4
commit
54faa30d2d
2 changed files with 3 additions and 2 deletions
|
@ -51,7 +51,7 @@ class PlexObject(object):
|
|||
for attr in attrs:
|
||||
value = self.__dict__.get(attr)
|
||||
if value:
|
||||
value = str(value, errors='replace').replace(' ', '-')
|
||||
value = str(value).replace(' ', '-')
|
||||
value = value.replace('/library/metadata/', '')
|
||||
value = value.replace('/children', '')
|
||||
return value[:20]
|
||||
|
|
|
@ -19,7 +19,8 @@ def test_server_attr(pms):
|
|||
#assert pms.session == <requests.sessions.Session object at 0x029A5E10>
|
||||
assert pms._token == os.environ.get('PLEX_TEST_TOKEN') or CONFIG.get('authentication.server_token')
|
||||
assert pms.transcoderActiveVideoSessions == 0
|
||||
assert str(pms.updatedAt.date()) == '2017-01-20'
|
||||
|
||||
#assert str(pms.updatedAt.date()) == '2017-01-20'
|
||||
assert pms.version == '1.3.3.3148-b38628e'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue