mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 22:24:12 +00:00
fix my bug.
This commit is contained in:
parent
b37e7fefeb
commit
ba9e7c6fe4
1 changed files with 1 additions and 2 deletions
|
@ -51,8 +51,7 @@ class PlexObject(object):
|
|||
for attr in attrs:
|
||||
value = self.__dict__.get(attr)
|
||||
if value:
|
||||
value = value.encode('utf-8')
|
||||
value = str(value).replace(' ', '-')
|
||||
value = str(value, errors='replace').replace(' ', '-')
|
||||
value = value.replace('/library/metadata/', '')
|
||||
value = value.replace('/children', '')
|
||||
return value[:20]
|
||||
|
|
Loading…
Reference in a new issue