XBMC Community Forum
[RELEASE] Artist Slideshow addon (for skin integration) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Artist Slideshow addon (for skin integration) (/showthread.php?tid=102703)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


- ronie - 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()



- NisseDILLIGAF - 2011-12-06 11:57

ronie Wrote:i guess you could do it like this:
Code:
currentname = xbmc.Player().getMusicInfoTag().getArtist()
if len(currentname) == 0:
    currentname = xbmc.Player().getMusicInfoTag().getTitle()

Thanx!! Smile

I had to change default.py in 3 places using this...
Code:
currentname = xbmc.Player().getMusicInfoTag().getArtist()
if len(currentname) == 0:
    currentname = xbmc.Player().getMusicInfoTag().getTitle()
and this...
Code:
self.NAME = xbmc.Player().getMusicInfoTag().getArtist()
if len(self.NAME) == 0:
    self.NAME = xbmc.Player().getMusicInfoTag().getTitle()
Now it downloads both when I play MP3 and Radio Smile


- locomot1f - 2011-12-12 20:31

NisseDILLIGAF Wrote:Thanx!! Smile

I had to change default.py in 3 places using this...
Code:
currentname = xbmc.Player().getMusicInfoTag().getArtist()
if len(currentname) == 0:
    currentname = xbmc.Player().getMusicInfoTag().getTitle()
and this...
Code:
self.NAME = xbmc.Player().getMusicInfoTag().getArtist()
if len(self.NAME) == 0:
    self.NAME = xbmc.Player().getMusicInfoTag().getTitle()
Now it downloads both when I play MP3 and Radio Smile


effin' sweet! can this commit be pushed to the original code!!!

maybe take a poll to see how many people use Radio feeds...?


- ronie - 2011-12-12 22:34

locomot1f Wrote:maybe take a poll to see how many people use Radio feeds...?

you can spare yourself the trouble, polls are about the last thing that could influence my decision on whether to add it or not.


- locomot1f - 2011-12-12 23:08

hmm.. after putting in the code. not getting the results i expected.

just out of curiosity, what streams are you using? and how are you streaming them?

@ronie - LOL! point taken. ;-)


- NisseDILLIGAF - 2011-12-13 08:39

locomot1f Wrote:hmm.. after putting in the code. not getting the results i expected.

just out of curiosity, what streams are you using? and how are you streaming them?

@ronie - LOL! point taken. ;-)

Well I made a m3u playlist with this in it...
Code:
#EXTM3U
#EXTINF:-1,Hard Rock Radio Live With The Music That Doesn't Suck
http://66.90.103.189:8910/
#EXTM3U
#EXTINF:-1,H4XED Metal - The newest Melodic, Death, and Thrash Metal!
http://sc-01.h4xed.us:7080/
(I don't know if I need all that, could work with just the link's)

The main thing is that they display who's playing in the 'Title'..
So if your station's dont show who's playing normaly when u play, It won't show now...
And sometimes the script wont find any artist, then it wont display any images...
Hope this helps.. Smile


feature request - mhdebokx - 2011-12-13 08:48

ronie Wrote:the script just takes the artist tag and sends it to last.fm.
if they don't return any info for "A and B" or "A&B",
i'm afraid there's nothing i can do about it.

Is it possible to make an configurable item in the settings, where artists tag is truncated ? Eg. configured are the words "ft", "pres" and "vs"

The artist tag should be like
name = xbmc.Player().getMusicInfoTag().getArtist()
name = name.rstrip(' ft ')


- locomot1f - 2011-12-13 20:08

NisseDILLIGAF Wrote:Well I made a m3u playlist with this in it...
Code:
#EXTM3U
#EXTINF:-1,Hard Rock Radio Live With The Music That Doesn't Suck
http://66.90.103.189:8910/
#EXTM3U
#EXTINF:-1,H4XED Metal - The newest Melodic, Death, and Thrash Metal!
http://sc-01.h4xed.us:7080/
(I don't know if I need all that, could work with just the link's)

The main thing is that they display who's playing in the 'Title'..
So if your station's dont show who's playing normaly when u play, It won't show now...
And sometimes the script wont find any artist, then it wont display any images...
Hope this helps.. Smile

yeah, it shows who's playing int the Title. along with the Title of the song. could that be throwing it off?

creating a m3u of the files didn't work either. i put in your streams to test. and the format is the same. makes me wonder if i put the code in the correct place. do you think you could share your default.py with me... just so i can see if i got the code correct? i don't get any script errors, so i know the format is correct. but maybe i didn't put the code in the right places...


- NisseDILLIGAF - 2011-12-14 08:18

locomot1f Wrote:yeah, it shows who's playing int the Title. along with the Title of the song. could that be throwing it off?

creating a m3u of the files didn't work either. i put in your streams to test. and the format is the same. makes me wonder if i put the code in the correct place. do you think you could share your default.py with me... just so i can see if i got the code correct? i don't get any script errors, so i know the format is correct. but maybe i didn't put the code in the right places...
I get both artist name and song name in the title and it manage to download the correct artist..


Here's my default.py file


- locomot1f - 2011-12-14 15:52

hey, it worked!!

the other thing that i forgot is that i set my setting for image size to 1280 x 720... so that might have been the other thing that was going on.

but it works! i didn't take a look to compare the two files.

thanks for sharing!!!