diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 1485d9b5..6714c900 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -3,7 +3,7 @@ from urllib import quote import plexdb_functions as plexdb from downloadutils import DownloadUtils as DU -from utils import JSONRPC, tryEncode +from utils import JSONRPC, tryEncode, tryDecode from PlexAPI import API ############################################################################### @@ -36,7 +36,7 @@ class Playlist_Object_Baseclase(object): answ += "items: %s, " % self.items for key in self.__dict__: if key not in ("ID", 'items'): - answ += '%s: %s, ' % (key, getattr(self, key)) + answ += '%s: %s, ' % (key, tryDecode(str(getattr(self, key)))) return answ[:-2] + ">" def clear(self): @@ -80,7 +80,7 @@ class Playlist_Item(object): def __repr__(self): answ = "<%s: " % (self.__class__.__name__) for key in self.__dict__: - answ += '%s: %s, ' % (key, getattr(self, key)) + answ += '%s: %s, ' % (key, tryDecode(str(getattr(self, key)))) return answ[:-2] + ">"