示例#1
0
def show_categories():
    corrieretv = CorriereTV()
    items = corrieretv.getChannels()

    for item in items:
        liStyle = xbmcgui.ListItem(item["title"])
        addDirectoryItem({"mode": "video_files", "url": item["url"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
示例#2
0
def show_root_folder():
    corrieretv = CorriereTV()
    items = corrieretv.getChannels()

    for item in items:
        liStyle=xbmcgui.ListItem(item["title"])
        addDirectoryItem({"url": item["url"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
def show_categories():
    corrieretv = CorriereTV()
    items = corrieretv.getChannels()

    for item in items:
        liStyle=xbmcgui.ListItem(item["title"])
        addDirectoryItem({"mode": "video_files", "url": item["url"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
示例#4
0
def play(videoId):
    xbmc.log("Video ID: " + videoId)
    corrieretv = CorriereTV()
    videoUrl = corrieretv.getVideoUrl(videoId)

    xbmc.log("Video URL: " + videoUrl)

    liStyle = xbmcgui.ListItem(path=videoUrl)
    xbmcplugin.setResolvedUrl(handle=handle, succeeded=True, listitem=liStyle)
示例#5
0
def show_video_files(url):
    xbmc.log("Category URL: " + url)
    corrieretv = CorriereTV()
    items = corrieretv.getVideoByChannel(url)
    for item in items:
        title = item["title"] + " (" + item["date"] + ")"
        liStyle = xbmcgui.ListItem(title, thumbnailImage=item["thumb"])
        addLinkItem({"mode": "play", "id": item["videoId"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
def play(videoId):
    xbmc.log("Video ID: " + videoId)
    corrieretv = CorriereTV()
    videoUrl = corrieretv.getVideoUrl(videoId)
    
    xbmc.log("Video URL: " + videoUrl)
    
    liStyle=xbmcgui.ListItem(path=videoUrl)
    xbmcplugin.setResolvedUrl(handle=handle, succeeded=True, listitem=liStyle)
def show_video_files(url):
    xbmc.log("Category URL: " + url)
    corrieretv = CorriereTV()
    items = corrieretv.getVideoByChannel(url)
    for item in items:
        title = item["title"] + " (" + item["date"] + ")"
        liStyle=xbmcgui.ListItem(title, thumbnailImage=item["thumb"])
        addLinkItem({"mode": "play", "id": item["videoId"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
示例#8
0
def show_video_files(url):
    corrieretv = CorriereTV()
    items = corrieretv.getVideoByChannel(url)
    for item in items:
        title = item["title"] + " (" + time.strftime("%d/%m/%Y %H:%M", item["date"]) + ")"
        liStyle=xbmcgui.ListItem(title, thumbnailImage=item["thumb"])
        liStyle.setInfo(type="video",
            infoLabels={"Title": title
                        })
        addLinkItem(item["url"], liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)