def mainlist(item): logger.info("[earthtv.py] mainlist") itemlist = [] # Añade al listado de XBMC itemlist.append( Item(channel=CHANNELNAME, title="Novedades" , action="novedades" , folder=True) ) # Playlists itemlist.extend(youtube.getplaylists("earthTV",1,13,CHANNELNAME,"playlist")) return itemlist
def mainlist(params,url,category): xbmc.output("[earthtv.py] mainlist") # Añade al listado de XBMC xbmctools.addnewfolder( CHANNELCODE , "novedades" , CHANNELNAME , "Novedades" , "" , "" , "" ) # Playlists itemlist = youtube.getplaylists("earthTV",1,13) for item in itemlist: xbmctools.addnewfolder( CHANNELCODE , "playlist" , CHANNELNAME , item.title , item.url , item.thumbnail , item.plot ) # Cierra el directorio xbmcplugin.setPluginCategory( handle=pluginhandle, category=category ) xbmcplugin.addSortMethod( handle=pluginhandle, sortMethod=xbmcplugin.SORT_METHOD_NONE ) xbmcplugin.endOfDirectory( handle=pluginhandle, succeeded=True )
def mainlist(item): logger.info("[earthtv.py] mainlist") itemlist = [] # Añade al listado de XBMC itemlist.append( Item(channel=CHANNELNAME, title="Novedades", action="novedades", folder=True)) # Playlists itemlist.extend( youtube.getplaylists("earthTV", 1, 13, CHANNELNAME, "playlist")) return itemlist
def mainlist(params, url, category): xbmc.output("[earthtv.py] mainlist") # Añade al listado de XBMC xbmctools.addnewfolder(CHANNELCODE, "novedades", CHANNELNAME, "Novedades", "", "", "") # Playlists itemlist = youtube.getplaylists("earthTV", 1, 13) for item in itemlist: xbmctools.addnewfolder(CHANNELCODE, "playlist", CHANNELNAME, item.title, item.url, item.thumbnail, item.plot) # Cierra el directorio xbmcplugin.setPluginCategory(handle=pluginhandle, category=category) xbmcplugin.addSortMethod(handle=pluginhandle, sortMethod=xbmcplugin.SORT_METHOD_NONE) xbmcplugin.endOfDirectory(handle=pluginhandle, succeeded=True)