Hi guys,
I have a problem with 2.0.4 version on kodi 19.1 (LibreElec 10)
I get this error :
ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'xbmcgui.ListItem' object has no attribute 'getfilename'
Traceback (most recent call last):
File "/storage/.kodi/addons/service.tvtunes/service.py", line 56, in <module>
main.runAsAService()
File "/storage/.kodi/addons/service.tvtunes/resources/lib/backend.py", line 165, in runAsAService
if self.start_playing():
File "/storage/.kodi/addons/service.tvtunes/resources/lib/backend.py", line 370, in start_playing
playlist = self.newThemeFiles.getThemePlaylist()
File "/storage/.kodi/addons/service.tvtunes/resources/lib/themeFinder.py", line 350, in getThemePlaylist
filename = playlist[0].getfilename()
AttributeError: 'xbmcgui.ListItem' object has no attribute 'getfilename'
-->End of Python script error report<--
Any clue ?
thanks.
EDIT : fixed my problem...almost...just a workaround.
This problem occurs if the "start at random position" option is enabled in the settings.
because as you can see here, listItem does not have a getFilename method.
https://codedocs.xyz/AlwinEsch/kodi/grou...titem.html
Now it works, but the random start option is somewhat important to me.
Any idea how to fix this ?
should I replace the getFileName with getLabel ? (does not seem a good idea lol).
@
latts9923 ?