Release Artist Slideshow addon (with skin and addon integration)
(2021-02-08, 23:32)manfeed Wrote: I have also tested with images, with Window(Visualisation).Property(ArtistSlideshow.%.AlbumThumb) and it happens exactly the same, the old images keep showing. This is the log...

https://paste.kodi.tv/orefedelur.kodi

Thanks.
I think I found the problem.  I'm not at home (and won't be until next week), so I don't have an easy way to test the fix though.  If you're up for it, there are two small changes in one file.

file: <kodi userdata folder>/addons/script.artistslideshow/resources/lib/artistslideshow.py
change: lines 1076 and 1080 change str( count ) to str( count + 1 )

When you're done, the code in context should look like this:
Code:
    def _set_properties( self ):
        similar_total = ''
        album_total = ''
        self._set_property( 'ArtistSlideshow.ArtistBiography', self.BIOGRAPHY )
        for count, item in enumerate( self.SIMILAR ):
            self._set_property( 'ArtistSlideshow.%d.SimilarName' % ( count + 1 ), item[0] )
            self._set_property( 'ArtistSlideshow.%d.SimilarThumb' % ( count + 1 ), item[1] )
            similar_total = str( count + 1 )
        for count, item in enumerate( self.ALBUMS ):
            self._set_property( 'ArtistSlideshow.%d.AlbumName' % ( count + 1 ), item[0] )
            self._set_property( 'ArtistSlideshow.%d.AlbumThumb' % ( count + 1 ), item[1] )
            album_total = str( count + 1 )
        self._set_property( 'ArtistSlideshow.SimilarCount', similar_total )
        self._set_property( 'ArtistSlideshow.AlbumCount', album_total )

Basically I didn't properly take into account how the enumerate function generates numbers versus the range function that is used later when unsetting the items.
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
New 2.0.0 Beta Coming Soon - by pkscout - 2016-05-12, 02:54
Writing tips - by Parkerbup - 2017-02-03, 14:56
RE: Artist Slideshow addon (with skin and addon integration) - by pkscout - 2021-02-09, 01:54
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