Fix library sync crash due to PMS sending string, not unicode

This commit is contained in:
Croneter 2018-06-12 19:43:09 +02:00
parent 0dc1d70c1d
commit 2152c789c7

View file

@ -456,7 +456,7 @@ class API(object):
""" """
Returns the title of the element as unicode or 'Missing Title Name' Returns the title of the element as unicode or 'Missing Title Name'
""" """
return self.item.get('title', 'Missing Title Name') return try_decode(self.item.get('title', 'Missing Title Name'))
def titles(self): def titles(self):
""" """