2021-09-07, 02:45
(2021-09-07, 02:19)MetalChris Wrote: I think that would actually encode the space between words as %20. But that's an easy fix.urllib_parse.quote would turn spaces to %20 whereas urllib_parse.quote_plus will turn spaces to +
Any idea why the context menu items for downloading and displaying plot description don't work in Matrix? Line 550
Code:liz.addContextMenuItems([('Download File', 'XBMC.RunPlugin(%s?mode=80&url=%s)' % (sys.argv[0], url)), ('Description', 'XBMC.RunPlugin(%s?mode=81&url=%s)' % (sys.argv[0], url))])]
I'd like to get those working again. Otherwise I'll just remove them.
XBMC.RunPlugin is deprecated, needs to be just RunPlugin
Also Notification syntax is new as well
xbmcgui.Dialog().notification(Title, msg, icon, duration in ms, sound True or False)
All changes mentioned above will work on Kodi 18, 19, and 20