Ejemplo n.º 1
0
def show_ondemand_list(pathId):
    xbmc.log("Raiplay.show_ondemand_list with PathID: %s" % pathId)
    # indice ottenuto dal json
    raiplay = RaiPlay(Addon)
    xbmc.log("Url: %s" % raiplay.getUrl(pathId))

    index = raiplay.getIndexFromJSON(pathId)
    xbmc.log(str(index))

    for i in index:
        liStyle = xbmcgui.ListItem(i)
        addDirectoryItem(
            {
                "mode": "ondemand_list",
                "index": i,
                "path_id": pathId
            }, liStyle)

    addDirectoryItem(
        {
            "mode": "ondemand_list_all",
            "index": len(index) + 1,
            "path_id": pathId
        }, xbmcgui.ListItem(Addon.getLocalizedString(32011)))
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)