Fix playlist sync: __bool__ returning str instead of bool

This commit is contained in:
croneter 2020-12-23 16:11:38 +01:00
parent 193778f0f4
commit 9c975cfe24

View file

@ -76,9 +76,13 @@ class Playlist(object):
"}}").format(self=self) "}}").format(self=self)
def __bool__(self): def __bool__(self):
return (self.plex_id and self.plex_updatedat and self.plex_name and return all((bool(self.plex_id),
self._kodi_path and self.kodi_filename and self.kodi_type and bool(self.plex_updatedat),
self.kodi_hash) bool(self.plex_name),
bool(self._kodi_path),
bool(self.kodi_filename),
bool(self.kodi_type),
bool(self.kodi_hash)))
# Used for comparison of playlists # Used for comparison of playlists
@property @property