Posts: 22
Joined: Jun 2014
Reputation:
2
Sorien
Junior Member
Posts: 22
2017-03-07, 12:49
(This post was last modified: 2017-03-07, 12:50 by Sorien.)
im feeding plugin with custom playable url that will resolved according user input from select dialog but user can cancel that dialog and so plugin calls xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, li) that has weird side effect and cancels actual playback is there any solution how to prevent it?
btw
xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, None) will crach kodi instantly
Posts: 1
Joined: Jul 2017
Reputation:
0
I have a similar problem. Did you find a solution?
P.S. I confirm KODI crash if call xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, None)
Posts: 80
Joined: Jun 2018
Reputation:
7
I noticed the same.
If your list item has 'IsPlayable' property set to 'true', nothing other than success with the setResolvedUrl is going to satisfy the system.
You need to not set that property if you want the user to be able to cancel or go back from that Dialog().select(), at the cost of losing the automatic checkmark when an item is watched (only available to 'IsPlayable' items).
You can still have a checkmark watched system, you just have to code it yourself with the setInfo( 'video', { 'overlay': ... } ) infolabel, and keep track of watching with a database or something, a local file in your addon data folder.