2014-05-07, 13:09
Im putting together a basic plugin for a friend, it will be a static list of Youtube links.
So far i am unable to get youtube links to play in XBMC,
should i be importing the youtube addon within my own in order to prepare the videos for viewing, or should they just play if i have the correct URL?
this is where i am at currently
Any advice would be much appreciated.
So far i am unable to get youtube links to play in XBMC,
should i be importing the youtube addon within my own in order to prepare the videos for viewing, or should they just play if i have the correct URL?
this is where i am at currently
Code:
import sys
import xbmcgui
import xbmcplugin
addon_handle = int(sys.argv[1])
xbmcplugin.setContent(addon_handle, 'movies')
url = 'plugin://plugin.video.youtube/?action=play_video&videoid=GgTpAPdwmbU'
li = xbmcgui.ListItem('Addison Groove Tribute', iconImage='http://www.residentadvisor.net/images/reviews/2012/addison-groove-transistor-rhythm.jpg', thumbnailImage='http://www.residentadvisor.net/images/reviews/2012/addison-groove-transistor-rhythm.jpg')
li.setProperty('fanart_image', 'fanart.jpg')
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
xbmcplugin.endOfDirectory(addon_handle)
Any advice would be much appreciated.