Fix playlist sync: __bool__ returning str instead of bool
This commit is contained in:
parent
193778f0f4
commit
9c975cfe24
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue