2014-02-23, 04:11
There's at least one obvious thing missing in the current boblight code:
Should have a:
...I think, right?
Otherwise one gets a 'ret' used before assignment error playing a movie...
Code:
# Possible Videoplayer options: files, movies, episodes, musicvideos, livetv
if xbmc.getCondVisibility("Player.HasVideo()"):
if xbmc.getCondVisibility("VideoPlayer.Content(musicvideos)"):
ret = "musicvideo"
elif xbmc.getCondVisibility("VideoPlayer.Content(episodes)"):
ret = "tvshow"
elif xbmc.getCondVisibility("VideoPlayer.Content(livetv)"):
ret = "livetv"
elif xbmc.getCondVisibility("VideoPlayer.Content(files)"):
ret = "files"
Should have a:
Code:
elif xbmc.getCondVisibility("VideoPlayer.Content(movies)"):
ret = "movie"
...I think, right?
Otherwise one gets a 'ret' used before assignment error playing a movie...