Exemplo n.º 1
0
def play(**kwargs):
    import xbmcaddon
    addon = xbmcaddon.Addon(id='plugin.video.ran_de')
    height = (234, 270, 396, 480, 540,
              720)[int(addon.getSetting('video.quality'))]
    resource = urllib.unquote_plus(kwargs['resource'])
    gui.play(api.get_video_url(resource, height))
Exemplo n.º 2
0
def play(**kwargs):
    import gui
    import xbmcaddon
    addon = xbmcaddon.Addon(id='plugin.video.atv_at')
    protocol = ('http', 'rtsp')[int(addon.getSetting('protocol'))]
    if addon.getSetting('video.as_playlist') == 'true':
        playlist = api.get_playlist(urllib.unquote(kwargs['url']), protocol)
        gui.play_playlist(playlist)
    else:
        gui.play(api.get_video_url(urllib.unquote(kwargs['url']), protocol))
Exemplo n.º 3
0
def play(**kwargs):
    import gui
    import xbmcaddon
    addon = xbmcaddon.Addon(id='plugin.video.atv_at')
    protocol = ('http', 'rtsp')[int(addon.getSetting('protocol'))]
    if addon.getSetting('video.as_playlist') == 'true':
        playlist = api.get_playlist(urllib.unquote(kwargs['url']), protocol)
        gui.play_playlist(playlist)
    else:
        gui.play(api.get_video_url(urllib.unquote(kwargs['url']), protocol))