2019-07-13, 13:34
Hi,
I (and another users) are getting a strange error when searching with the Youtube add-on - the bizarre thing is the issue only seems to occur when a video has been played in the British Pathè plugin (of which I am the author).
You can see the discussion of that on this thread.
In short - when a video has been played on the British Pathé add-on - any subsequent search via the YouTube add-on fails and throws an error.
I can see the error is at: plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/search_history.py in the "list" method of the "SearchHistory" class.
line 32:
It appears that the "_get" method of the "Storage" class at: plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/storage.py returns "None" in some cases - but the line causing the error never checks to see if "item" is None - giving the error:
Here is the truncated log of the error: https://paste.kodi.tv/ulaminagub.kodi
Why this only seems to occur after a video has been played in another add-on isn't immediately apparent - however I think it is something to do with the sqlite3 connection. My addon does use an sqlite3 database to cache recently played items - however it does correctly close the connection and cursor after use and itself is not giving any errors.
More than happy to offer and additional information that could help.
Many thanks.
I (and another users) are getting a strange error when searching with the Youtube add-on - the bizarre thing is the issue only seems to occur when a video has been played in the British Pathè plugin (of which I am the author).
You can see the discussion of that on this thread.
In short - when a video has been played on the British Pathé add-on - any subsequent search via the YouTube add-on fails and throws an error.
I can see the error is at: plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/search_history.py in the "list" method of the "SearchHistory" class.
line 32:
python:result.append(item[0])
It appears that the "_get" method of the "Storage" class at: plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/storage.py returns "None" in some cases - but the line causing the error never checks to see if "item" is None - giving the error:
Code:
TypeError: 'NoneType' object has no attribute '__getitem__'
Here is the truncated log of the error: https://paste.kodi.tv/ulaminagub.kodi
Why this only seems to occur after a video has been played in another add-on isn't immediately apparent - however I think it is something to do with the sqlite3 connection. My addon does use an sqlite3 database to cache recently played items - however it does correctly close the connection and cursor after use and itself is not giving any errors.
More than happy to offer and additional information that could help.
Many thanks.