def show_video_files(url):
    popcorntv = PopcornTV()
    page = popcorntv.getVideoBySubCategories(url)
    
    for video in page["videoList"]:
        liStyle=xbmcgui.ListItem(video["title"], thumbnailImage=video["thumb"])
        addLinkItem({"mode": "video", "url": video["url"]}, liStyle)
        
    if page["firstPageUrl"] is not None:
        liStyle=xbmcgui.ListItem("<< First Page", iconImage = "DefaultFolder.png")
        addDirectoryItem({"mode": "list", "url": page["firstPageUrl"]}, liStyle)
        
    if page["prevPageUrl"] is not None:
        liStyle=xbmcgui.ListItem("< Prev Page", iconImage = "DefaultFolder.png")
        addDirectoryItem({"mode": "list", "url": page["prevPageUrl"]}, liStyle)
        
    if page["nextPageUrl"] is not None:
        liStyle=xbmcgui.ListItem("> Next Page", iconImage = "DefaultFolder.png")
        addDirectoryItem({"mode": "list", "url": page["nextPageUrl"]}, liStyle)
        
    if page["lastPageUrl"] is not None:
        liStyle=xbmcgui.ListItem(">> Last Page", iconImage = "DefaultFolder.png")
        addDirectoryItem({"mode": "list", "url": page["lastPageUrl"]}, liStyle)
        
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
def show_video_files(url):
    popcorntv = PopcornTV()
    page = popcorntv.getVideoBySubCategories(url)

    for video in page["videoList"]:
        liStyle = xbmcgui.ListItem(video["title"],
                                   thumbnailImage=video["thumb"])
        addLinkItem({"mode": "video", "url": video["url"]}, liStyle)

    if page["firstPageUrl"] is not None:
        liStyle = xbmcgui.ListItem("<< First Page",
                                   iconImage="DefaultFolder.png")
        addDirectoryItem({
            "mode": "list",
            "url": page["firstPageUrl"]
        }, liStyle)

    if page["prevPageUrl"] is not None:
        liStyle = xbmcgui.ListItem("< Prev Page",
                                   iconImage="DefaultFolder.png")
        addDirectoryItem({"mode": "list", "url": page["prevPageUrl"]}, liStyle)

    if page["nextPageUrl"] is not None:
        liStyle = xbmcgui.ListItem("> Next Page",
                                   iconImage="DefaultFolder.png")
        addDirectoryItem({"mode": "list", "url": page["nextPageUrl"]}, liStyle)

    if page["lastPageUrl"] is not None:
        liStyle = xbmcgui.ListItem(">> Last Page",
                                   iconImage="DefaultFolder.png")
        addDirectoryItem({"mode": "list", "url": page["lastPageUrl"]}, liStyle)

    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
def play_video(url):
    popcorntv = PopcornTV()
    metadata = popcorntv.getVideoMetadata(url)
    video_url = popcorntv.getVideoURL(metadata["smilUrl"])
    liStyle = xbmcgui.ListItem(metadata["title"],
                               thumbnailImage=metadata["thumb"])
    xbmc.Player().play(video_url, liStyle)
예제 #4
0
def play_video(url):
    popcorntv = PopcornTV()
    metadata = popcorntv.getVideoMetadata(url)
    #video_url = popcorntv.getVideoURL(metadata["smilUrl"])
    video_url = popcorntv.getAndroidVideoURL(metadata["smilUrl"])
    liStyle=xbmcgui.ListItem(metadata["title"], thumbnailImage=metadata["thumb"])
    xbmc.Player().play(video_url, liStyle)
예제 #5
0
def show_video_files(url):
    popcorntv = PopcornTV()
    items = popcorntv.getVideoBySubCategories(url)
    
    for item in items:
        liStyle=xbmcgui.ListItem(item["title"], thumbnailImage=item["thumb"])
        addLinkItem({"mode": "video", "url": item["url"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
예제 #6
0
def show_category_folder(url):
    popcorntv = PopcornTV()
    items = popcorntv.getSubCategories(url)

    for item in items:
        liStyle=xbmcgui.ListItem(item["title"])
        addDirectoryItem({"mode": "list", "url": item["url"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
예제 #7
0
def show_root_folder():
    popcorntv = PopcornTV()
    items = popcorntv.getCategories()

    for item in items:
        liStyle = xbmcgui.ListItem(item["title"])
        addDirectoryItem({"mode": "folder", "url": item["url"]}, liStyle)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
def show_category_folder(url):
    popcorntv = PopcornTV()
    items = popcorntv.getSubCategories(url)

    for item in items:
        liStyle = xbmcgui.ListItem(item["title"])
        addDirectoryItem({"mode": "list", "url": item["url"]}, liStyle)
    xbmcplugin.addSortMethod(handle, xbmcplugin.SORT_METHOD_LABEL)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
def show_category_folder(url):
    xbmc.log("Category URL: " + url)
    popcorntv = PopcornTV()
    items = popcorntv.getSubCategories(url)

    for item in items:
        liStyle=xbmcgui.ListItem(item["title"])
        addDirectoryItem({"mode": "list", "url": item["url"]}, liStyle)
    xbmcplugin.addSortMethod(handle, xbmcplugin.SORT_METHOD_LABEL)
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
예제 #10
0
def show_video_files(url):
    xbmc.log("Subcategory URL: " + url)
    popcorntv = PopcornTV()
    page = popcorntv.getVideoBySubCategories(url)
    
    for video in page["videoList"]:
        liStyle=xbmcgui.ListItem(video["title"])
        liStyle.setArt({"thumb": video["thumb"]})
        liStyle.setInfo('video', {"Plot": video["plot"]})
        addLinkItem({"mode": "video", "url": video["url"]}, liStyle)
              
    if page["prevPageUrl"] is not None:
        liStyle=xbmcgui.ListItem("< Precedente")
        liStyle.setArt({"icon": "DefaultFolder.png"})
        addDirectoryItem({"mode": "list", "url": page["prevPageUrl"]}, liStyle)
        
    if page["nextPageUrl"] is not None:
        liStyle=xbmcgui.ListItem("> Successivo")
        liStyle.setArt({"icon": "DefaultFolder.png"})
        addDirectoryItem({"mode": "list", "url": page["nextPageUrl"]}, liStyle)
        
    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
예제 #11
0
def show_video_files(url):
    xbmc.log("Subcategory URL: " + url)
    popcorntv = PopcornTV()
    page = popcorntv.getVideoBySubCategories(url)

    for video in page["videoList"]:
        liStyle = xbmcgui.ListItem(video["title"])
        liStyle.setArt({"thumb": video["thumb"]})
        liStyle.setInfo('video', {"Plot": video["plot"]})
        addLinkItem({"mode": "video", "url": video["url"]}, liStyle)

    if page["prevPageUrl"] is not None:
        liStyle = xbmcgui.ListItem("< Precedente")
        liStyle.setArt({"icon": "DefaultFolder.png"})
        addDirectoryItem({"mode": "list", "url": page["prevPageUrl"]}, liStyle)

    if page["nextPageUrl"] is not None:
        liStyle = xbmcgui.ListItem("> Successivo")
        liStyle.setArt({"icon": "DefaultFolder.png"})
        addDirectoryItem({"mode": "list", "url": page["nextPageUrl"]}, liStyle)

    xbmcplugin.endOfDirectory(handle=handle, succeeded=True)
예제 #12
0
def play_video(url):
    popcorntv = PopcornTV()
    #video_url = popcorntv.getVideoURL(popcorntv.getSmilUrl(url))
    video_url = popcorntv.getAndroidVideoURL(popcorntv.getSmilUrl(url))
    xbmc.Player().play(video_url)
예제 #13
0
def play_video(url):
    xbmc.log("Video URL: " + url)
    popcorntv = PopcornTV()
    metadata = popcorntv.getVideoMetadata(url)
    liStyle=xbmcgui.ListItem(path=metadata["videoUrl"])
    xbmcplugin.setResolvedUrl(handle=handle, succeeded=True, listitem=liStyle)
예제 #14
0
def play_video(url):
    xbmc.log("Video URL: " + url)
    popcorntv = PopcornTV()
    metadata = popcorntv.getVideoMetadata(url)
    liStyle = xbmcgui.ListItem(path=metadata["videoUrl"])
    xbmcplugin.setResolvedUrl(handle=handle, succeeded=True, listitem=liStyle)