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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/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


- ronie - 2011-12-03

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

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

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

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

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

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

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

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

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

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!!!


- locomot1f - 2011-12-14

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

then shall i say, in the development of this plugin, I would like to see this feature supported.

1) It give people who love internet radio a chance to tap into this service.
2) It does not affect the way the original code works.
3) may lead to other discoveries and progression of this lovely plug-in!

Thanks for all your help, Ronie! Big Grin


- Oddsodz - 2011-12-15

Hey all. Have just had some fun with this addon, And it nice indeed. Works very well. Good job.

I Do have a request (if it is already in then I fail at reading). Is there a way to have a "Fall Back" folder of images in case the addon fails to find any images for the artist that is playing at that time? Or even if you happen to have a "ExtraFanArt" folder in you Artist folder it would fall back to that.

Right now what seems to happen is the addon will just fall back to showing the default image from the skin it's self (in my case the pink headphones lady from Cirrus Extended v2).

Can this be done?

Thanks for reading.

Oddsodz


- ronie - 2011-12-15

mhdebokx Wrote: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 Wrote:then shall i say, in the development of this plugin, I would like to see this feature supported.

1) It give people who love internet radio a chance to tap into this service.
2) It does not affect the way the original code works.
3) may lead to other discoveries and progression of this lovely plug-in!

Thanks for all your help, Ronie! Big Grin

Oddsodz Wrote:Hey all. Have just had some fun with this addon, And it nice indeed. Works very well. Good job.

I Do have a request (if it is already in then I fail at reading). Is there a way to have a "Fall Back" folder of images in case the addon fails to find any images for the artist that is playing at that time? Or even if you happen to have a "ExtraFanArt" folder in you Artist folder it would fall back to that.

Right now what seems to happen is the addon will just fall back to showing the default image from the skin it's self (in my case the pink headphones lady from Cirrus Extended v2).

Can this be done?

Thanks for reading.

Oddsodz

i'll add all of this to my todo list.
once xbmc eden is released, i may find some time to look into it :-)


- spiderlane - 2012-01-05

Just adding a "me too" to this thread to collate some different set ups experiencing similar issues.

I have installed the script and modded the (Confluence) skin to display the artist images. It works brilliantly at first, but when I move onto a 2nd artist, the first image is displayed, but no others are. However, as described by others, if I go out of full screen and then back again, the slideshow starts and it iterates through a number of images. When the artist changes again, the problem repeats; I get the first artist image and no others until I flick in an out of full screen.

Machine : Apple TV 2
Release : Eden Beta 1
Skin : Confluence.

Happy to help debug/troubleshoot this issue, since it's a great script.

Cheers
Mark


- ronie - 2012-01-07

spiderlane Wrote:J
Happy to help debug/troubleshoot this issue, since it's a great script.

thanx for the offer... let's start with a Debug Log then Smile

i'm aware moving out and back to fullscreen triggers the slideshow to update,
but please don't do so when creating the Debug Log.