2011-12-03, 19:23
NisseDILLIGAF Wrote:First... Really like this addon! Thanx!
Now, I often play radio stations on my xbmc, and they use the Title to type who's playing..
Then the Artist 'tag' is empty so the addon won't get any images...
I changed 'getArtist()' to 'getTitle()' ... and now it gets images when I'm playing radio stations...
Only thing is that now it wont get any images when I play mp3's..
I'm a noob when it comes to phyton so I dont know how to get both..?
I guess it would be 'if getArtist() is empty then getTitle()' ..??
How do I type that for phyton?
Thanx again for a great addon!
i guess you could do it like this:
Code:
currentname = xbmc.Player().getMusicInfoTag().getArtist()
if len(currentname) == 0:
currentname = xbmc.Player().getMusicInfoTag().getTitle()