2019-11-11, 12:30
Wow, that was quick work !!
Sadly, on testing initially, I hit a snag ....
I fixed this by adding line 2 below
Not sure if that was the correct way to do it, but it now runs and shows the correct artist art.
Dunno if it's relevant or not but I am using the artist info directory to store the images in. Oh, also when I used the addon to move them, I got a progress dialog but it never seemed to update the progress bar. It did move all the art though and notify me when it was done.
Sadly, on testing initially, I hit a snag ....
python:2019-11-11 10:18:21.005 T:1684 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'Main' object has no attribute 'CACHEDIR'
Traceback (most recent call last):
File "/home/xbmc/build/kodi-19/kodi-build/portable_data/addons/script.artistslideshow/default.py", line 1157, in <module>
slideshow = Main()
File "/home/xbmc/build/kodi-19/kodi-build/portable_data/addons/script.artistslideshow/default.py", line 274, in __init__
self._use_correct_artwork()
File "/home/xbmc/build/kodi-19/kodi-build/portable_data/addons/script.artistslideshow/default.py", line 1079, in _use_correct_artwork
self._set_artwork_from_dir( self.FALLBACKPATH, self._get_file_list( self.FALLBACKPATH ) )
File "/home/xbmc/build/kodi-19/kodi-build/portable_data/addons/script.artistslideshow/default.py", line 914, in _set_artwork_from_dir
if (dir == self.CACHEDIR) and (self.INCLUDEFANARTJPG or self.INCLUDEFOLDERJPG):
AttributeError: 'Main' object has no attribute 'CACHEDIR'
-->End of Python script error report<--
I fixed this by adding line 2 below
python:self.SLIDESHOW.setDaemon(True)
self.CACHEDIR = ''
self.SLIDESHOW.start()
Not sure if that was the correct way to do it, but it now runs and shows the correct artist art.
Dunno if it's relevant or not but I am using the artist info directory to store the images in. Oh, also when I used the addon to move them, I got a progress dialog but it never seemed to update the progress bar. It did move all the art though and notify me when it was done.