Less playlist logging

This commit is contained in:
croneter 2019-04-11 18:21:14 +02:00
parent 8c614f3e47
commit fe52efd88e

View file

@ -76,23 +76,23 @@ class Playqueue_Object(object):
self.kodi_playlist_playback = False self.kodi_playlist_playback = False
def __repr__(self): def __repr__(self):
answ = ("{{" return ("{{"
"'playlistid': {self.playlistid}, " "'playlistid': {self.playlistid}, "
"'id': {self.id}, " "'id': {self.id}, "
"'version': {self.version}, " "'version': {self.version}, "
"'type': '{self.type}', " "'type': '{self.type}', "
"'items': {items}, "
"'selectedItemID': {self.selectedItemID}, " "'selectedItemID': {self.selectedItemID}, "
"'selectedItemOffset': {self.selectedItemOffset}, " "'selectedItemOffset': {self.selectedItemOffset}, "
"'shuffled': {self.shuffled}, " "'shuffled': {self.shuffled}, "
"'repeat': {self.repeat}, " "'repeat': {self.repeat}, "
"'kodi_playlist_playback': {self.kodi_playlist_playback}, " "'kodi_playlist_playback': {self.kodi_playlist_playback}, "
"'pkc_edit': {self.pkc_edit}, ".format(self=self)) "'pkc_edit': {self.pkc_edit}, "
answ = answ.encode('utf-8') "}}").format(**{
# Since list.__repr__ will return string, not unicode 'items': [x.plex_id for x in self.items or []],
return answ + b"'items': {self.items}}}".format(self=self) 'self': self
}).encode('utf-8')
def __str__(self): __str__ = __repr__
return self.__repr__()
def is_pkc_clear(self): def is_pkc_clear(self):
""" """