From 7ae831f7c3f900dbdb856e1e673dd03e6aeea400 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 8 Apr 2018 12:37:25 +0200 Subject: [PATCH] Fix pretty printing of PKC playqueues not working --- resources/lib/playlist_func.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 389d991f..2ca38124 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -64,6 +64,8 @@ class PlaylistObjectBaseclase(object): if isinstance(getattr(self, key), str): answ += '\'%s\': \'%s\', ' % (key, try_decode(getattr(self, key))) + elif isinstance(getattr(self, key), unicode): + answ += '\'%s\': \'%s\', ' % (key, getattr(self, key)) else: # e.g. int answ += '\'%s\': %s, ' % (key, unicode(getattr(self, key))) @@ -184,6 +186,8 @@ class Playlist_Item(object): if isinstance(getattr(self, key), str): answ += '\'%s\': \'%s\', ' % (key, try_decode(getattr(self, key))) + elif isinstance(getattr(self, key), unicode): + answ += '\'%s\': \'%s\', ' % (key, getattr(self, key)) else: # e.g. int answ += '\'%s\': %s, ' % (key, unicode(getattr(self, key)))