2012-03-15, 15:26
@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...
but would like to have it like this...
but I don't know how to write the code...??
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...??