I love this add-on but I'm having intermittent problems. I use CoreELEC as my frontend to connect Kodi to my music collection over the network. The machine where music and the Artist Information folder is stored is a windows 10 computer. Every now and then, Artist Slideshow chokes and then keeps displaying art for the same artist until I reboot. Log shows an error like this:
Code:
2020-04-02 23:51:54.866 T:3145724800 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.OSError'>
Error Contents: [Errno 2] No such file or directory: 'smb://192.168.1.185/Q/_Artist_Info/Level 42/information/lastfmartistbio.nfo'
Traceback (most recent call last):
File "/storage/.kodi/addons/script.artistslideshow/default.py", line 9, in <module>
slideshow.Start()
File "/storage/.kodi/addons/script.artistslideshow/resources/lib/artistslideshow.py", line 288, in Start
self._use_correct_artwork()
File "/storage/.kodi/addons/script.artistslideshow/resources/lib/artistslideshow.py", line 1210, in _use_correct_artwork
self._get_artistinfo()
File "/storage/.kodi/addons/script.artistslideshow/resources/lib/artistslideshow.py", line 520, in _get_artistinfo
self.BIOGRAPHY = self._get_artistbio()
File "/storage/.kodi/addons/script.artistslideshow/resources/lib/artistslideshow.py", line 459, in _get_artistbio
bio, loglines = self.BIOPLUGINS['objs'][plugin_name[1]].getBio( bio_params )
File "/storage/.kodi/addons/script.artistslideshow/resources/plugins/lastfm.py", line 89, in getBio
xmldata = _xmltree.fromstring( py2_encode( self._get_data( filepath, cachefilepath, url_params ) ) )
File "/storage/.kodi/addons/script.artistslideshow/resources/plugins/lastfm.py", line 182, in _get_data
if self._update_cache( filepath, cachefilepath ):
File "/storage/.kodi/addons/script.artistslideshow/resources/plugins/lastfm.py", line 208, in _update_cache
if time.time() - os.path.getmtime( filepath ) < self._get_cache_time( cachefilepath ):
File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
OSError: [Errno 2] No such file or directory: 'smb://192.168.1.185/Q/_Artist_Info/Level 42/information/lastfmartistbio.nfo'
-->End of Python script error report<--
The network access is via SMB, permissions are those of an admin user on the windows machine. Correct access data is saved in password.xml.
Now, I've had a look at this specific file the log entry is complaining about. It does exist and was written or changed on 2020-04-02 23:28. I'm unsure why the log complains about the file not existing. Is it possible that Kodi or your add-on attempted to write/change the file the same time it was accessed while playback happened? In that case I guess it would have been locked.
Additional configuration info, Add-on "Storage" is configured to
Store artist images in => Kodi artist information folder
Store artist information in => Custom location
- Custom location => Path to Kodi information folder
If that configuration is invalid because of potential lockups it should probably say so in the config screen. Thanks for looking into it!