Release Artist Slideshow addon (with skin and addon integration)
(2015-02-17, 13:45)weirdinin Wrote: I have question related to ArtistSlideshow.ArtworkReady property. As a beginner skinner, I'm not sure if I'm using it right or if it's appropriate way to achieve what I'm trying. My goal is to show general music-related fanart pics from /various/extrafanart/ if there's no fanart available by artistslideshow. E.g some albums that have many contributing artists are located in folder "various" and it seems artist slideshow cannot pick extrafanart when a song from folder various is played. So I need to tell kodi when there's no image showed by artist slideshow.
I tried this:
this goes for slideshow:
<visible>!IsEmpty(Window(Visualisation).Property(ArtistSlideshow.ArtworkReady))</visible>
and this for extrafanart:
<visible>IsEmpty(Window(Visualisation).Property(ArtistSlideshow.ArtworkReady))</visible>
but no success yet.
This issue might suit better in skinning forum but I think this is quite simple problem so I try to seek help first here.

EDIT. I made some progress here, at least in troubleshooting. I managed to find out, that actually the lines that I described above tell kodi that there's no fanart provided by slideshow and kodi shows extrafanart from various folder according to the second line. But this only works, if there's no a song, that gets it's fanart from slideshow, before a song that gets fanart from various folder.
Here's example (and debug log also). I played songs in following order. second song gets it's fanart from slideshow and others from various folder:
1. alain sylvain - doux mystere IV
2. adele - rolling in the deep
3. alain sylvain - doux mystere IV

results: when song doux mystere is played first time, fanart is shown as expected. But there's no fanart when doux is played second time, just black screen. Whenever rolling in the deep is played there's fanart no matter what is played before or after.
Debug log http://pastebin.com/RWGrGzKk

You might be better off testing for the presence of "true" in ArtistSlideshow.ArtworkReady instead of using IsEmpty. ArtworkReady is empty at first, but after it is set to "true" and then set back,
it might not be considered empty anymore.

So, for slideshow:
<visible>StringCompare(Window(Visualisation).Property(ArtistSlideshow.ArtworkReady),"true")</visible>
and this for extrafanart:
<visible>!StringCompare(Window(Visualisation).Property(ArtistSlideshow.ArtworkReady),"true")</visible>

BTW, AS already has a method for using a fallback folder if no artwork is found for an artist. Check out the AS wiki page and look for fallback slideshow folder. That does require the user to setup something rather than it being done in the skin, but that way the user can decide what to do when no artwork is found.
Reply


Messages In This Thread
New Test Version Available - by pkscout - 2012-03-08, 16:26
[No subject] - by mardup - 2012-03-10, 12:26
[No subject] - by pkscout - 2012-03-11, 01:35
RE: - by mardup - 2012-03-12, 17:50
RE: - by pkscout - 2012-03-13, 03:22
New Beta Version for Testing - by pkscout - 2012-07-13, 17:54
New Beta Version for Testing - by pkscout - 2012-07-14, 22:50
Pull Request for v1.4 Submitted - by pkscout - 2012-07-20, 23:01
New Beta Version for Testing - by pkscout - 2012-08-10, 03:18
New Frodo BETA Support Files - by pkscout - 2012-11-21, 06:20
RE: [RELEASE] Artist Slideshow 1.3.0 addon (with skin and addon integration) - by pkscout - 2015-02-18, 02:20
New 2.0.0 Beta Coming Soon - by pkscout - 2016-05-12, 02:54
Writing tips - by Parkerbup - 2017-02-03, 14:56
Add-on Artist Slideshow - by jo26 - 2014-08-08, 22:58
Logout Mark Read Team Forum Stats Members Help
Artist Slideshow addon (with skin and addon integration)5