mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-24 12:43:06 +00:00
Convert clean value to str
This commit is contained in:
parent
e93829f881
commit
a42bca2a6a
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ class PlexObject(object):
|
|||
def _clean(self, value):
|
||||
""" Clean attr value for display in __repr__. """
|
||||
if value:
|
||||
value = value.replace('/library/metadata/', '').replace('/children', '')
|
||||
value = str(value).replace('/library/metadata/', '')
|
||||
value = value.replace('/children', '')
|
||||
return value.replace(' ', '-')[:20]
|
||||
|
||||
def _buildItem(self, elem, cls=None, initpath=None):
|
||||
|
|
Loading…
Reference in a new issue