Merge pull request #1072 from croneter/fix-bool

Make sure bool is returned instead of an int
This commit is contained in:
croneter 2019-11-30 16:26:50 +01:00 committed by GitHub
commit 343fce2102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,11 +54,11 @@ class App(object):
@property @property
def is_playing(self): def is_playing(self):
return self.player.isPlaying() return self.player.isPlaying() == 1
@property @property
def is_playing_video(self): def is_playing_video(self):
return self.player.isPlayingVideo() return self.player.isPlayingVideo() == 1
def register_fanart_thread(self, thread): def register_fanart_thread(self, thread):
self.fanart_thread = thread self.fanart_thread = thread