2023-05-30, 10:39
I wrote a custon video add-on for Kodi 19 Matrix, which calls a custom script add-on to actually play the playable items.
Everything is working as expected, except a wrong dialog box informing that it was impossible to play the item (but actually the play succeeded). Into the log appears the error message:
I tried also to use the callback mechanism provided by
Is there a way to force a video add-on into thinking that the play succeded, even if the play was performed by a custom script or not executed at all?
Everything is working as expected, except a wrong dialog box informing that it was impossible to play the item (but actually the play succeeded). Into the log appears the error message:
Code:
ERROR <general>: Playlist Player: skipping unplayable item: 0, path [plugin://script.picture.photo-frame/?context=%2Fdata%2Fplaylist_16x9.m3u
- The playable item has the url pointing to my custom script:
'plugin://script.picture.photo-frame/?' + urlencode({'context': playlist_path})
- The play is actually performed by my custom script add-on called script.picture.photo-frame.
- The scrip add-on terminates without errors.
I tried also to use the callback mechanism provided by
xbmcplugin.setResolvedUrl()
into the video add-on. In this case clicking the playable item actually invokes the video add-on again, but the "play failed" dialog box appears regardless any action I take: calling setResolvedUrl(succeeded=True)
or setResolvedUrl(succeeded=False)
does not make any difference. I tried also to not call the custom player script at all, but the video add-on still thinks that the playing failed.Is there a way to force a video add-on into thinking that the play succeded, even if the play was performed by a custom script or not executed at all?