def updateDisplay(self, eventDetails=None): SonosControllerWindow.updateDisplay(self, eventDetails) # Now we have updated the track currently playing read the details out and # set the windows properties for ArtistSlideshow # Only update if the track has changed if self.currentTrack not in [None, '']: # Check if we want to show lyrics for the track, although not part of the # artist slideshow feature (it is part of script.cu.lrclyrics) we treat # this in a similar manner, first set the values lyrics = None if Settings.isLyricsInfoLayout(): lyrics = Lyrics(self.currentTrack, self.getControl(SonosArtistSlideshow.LYRICS), self.lyricListLinesCount) lyrics.setLyricRequest() # Artist Slideshow will set these properties for us xbmcgui.Window(self.windowId).setProperty('CURRENTARTIST', self.currentTrack['artist']) xbmcgui.Window(self.windowId).setProperty('CURRENTTITLE', self.currentTrack['title']) xbmcgui.Window(self.windowId).setProperty('CURRENTALBUM', self.currentTrack['album']) # Check if lyrics are enabled, and set the test if they are if lyrics is not None: self.currentTrack = lyrics.populateLyrics() lyrics.refresh() del lyrics
def updateDisplay(self, eventDetails=None): SonosControllerWindow.updateDisplay(self, eventDetails) # Now we have updated the track currently playing read the details out and # set the windows properties for ArtistSlideshow # Only update if the track has changed if self.currentTrack not in [None, '']: # Check if we want to show lyrics for the track, although not part of the # artist slideshow feature (it is part of script.cu.lrclyrics) we treat # this in a similar manner, first set the values lyrics = None if Settings.isLyricsInfoLayout(): lyrics = Lyrics(self.currentTrack, self.getControl(SonosArtistSlideshow.LYRICS), self.lyricListLinesCount) lyrics.setLyricRequest() # Artist Slideshow will set these properties for us xbmcgui.Window(self.windowId).setProperty( 'CURRENTARTIST', self.currentTrack['artist']) xbmcgui.Window(self.windowId).setProperty( 'CURRENTTITLE', self.currentTrack['title']) xbmcgui.Window(self.windowId).setProperty( 'CURRENTALBUM', self.currentTrack['album']) # Check if lyrics are enabled, and set the test if they are if lyrics is not None: self.currentTrack = lyrics.populateLyrics() lyrics.refresh() del lyrics