2012-03-16, 22:56
(2012-03-15, 15:26)NisseDILLIGAF Wrote: @pkscuot
I've added code to see what track is playing and what album that track is on, then download album name and image..
But I'm not happy about how i made '_set_properties' work...
It should only be one name and one image... now it's in an array. (think that's what's it called?)
have a look in my GitHub
edit:
now I use this...
Code:for count, item in enumerate( self.currentalbum ):
self.WINDOW.setProperty("ArtistSlideshow.%d.currentAlbumName" % ( count + 1 ), item[0])
self.WINDOW.setProperty("ArtistSlideshow.%d.currentAlbumThumb" % ( count + 1 ), item[1])
but would like to have it like this...
Code:self.WINDOW.setProperty("ArtistSlideshow.CurrentAlbumName", self.currentalbum[0,0])
self.WINDOW.setProperty("ArtistSlideshow.CurrentAlbumThumb", self.currentalbum[0,1])
but I don't know how to write the code...??
I think the correct syntax would be self.currentalbum[0][0].
I'm assuming this update is so that an internet stream can show the album and artwork. For that to work will require the skin to support it. Right now Artist Slideshow doesn't really care about the album or artwork, as that information comes from the standard XBMC player. With this addition a skin maintainer would have to add conditional visibility to both album name and the artwork (plus know where the artwork got stored). I'm not sure how many people you'll get to add that to a skin.