2015-05-04, 15:00
Has anyone else had an issue with the youtube plugin not playing URLs within their own addons?
I have the following code:
li = xbmcgui.ListItem('li_name')
li.setProperty('isPlayable','True')
url = 'plugin://plugin.video.youtube/?action=play_video&videoid=XXXXX'
xbmcplugin.addDirectoryItem(handle=addon_handle , url=url, listitem=li)
# xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play('plugin://plugin.video.youtube?action=play_video&videoid=XXXXX')
#xbmc.executebuiltin('PlayMedia(plugin://plugin.video.youtube/?action=play_video&videoid=XXXXXX)')
The #commented sections work just fine, but when I use the addDirectory option the URL does not play.
I am currently using Kodi v15.0 alpha if that has any say in the issue.
I have the following code:
li = xbmcgui.ListItem('li_name')
li.setProperty('isPlayable','True')
url = 'plugin://plugin.video.youtube/?action=play_video&videoid=XXXXX'
xbmcplugin.addDirectoryItem(handle=addon_handle , url=url, listitem=li)
# xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play('plugin://plugin.video.youtube?action=play_video&videoid=XXXXX')
#xbmc.executebuiltin('PlayMedia(plugin://plugin.video.youtube/?action=play_video&videoid=XXXXXX)')
The #commented sections work just fine, but when I use the addDirectory option the URL does not play.
I am currently using Kodi v15.0 alpha if that has any say in the issue.