Release Artist Slideshow addon (with skin and addon integration)
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!
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 HeresJohnny - 2020-04-03, 00:20
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