def apiAddPlaylist(id, type=''):
    playlist = ytlibrary_api.add_playlist(id, type)
    m_xml.xml_add_playlist(playlist['ytplaylistid'], type, playlist)
    playlists.editPlaylist(playlist['ytplaylistid'],
                           type)  #Load the view to edit this playlist
    #xbmc.executebuiltin("Container.Update")
    xbmcplugin.endOfDirectory(vars.addon_handle, updateListing=True)
Exemplo n.º 2
0
def edit_playlist(id, set, type=''):
    if set != None:
        set = set[0]
        #We should set a value
        playlists.setEditPlaylist(id, set, type)
    #Display the videos of this playlistID
    playlists.editPlaylist(id, type=type)
    if set == None:
        xbmcplugin.endOfDirectory(vars.addon_handle)
    else:
        xbmc.executebuiltin("Container.Refresh")
def edit_playlist(id, set, type=''):
    if set != None:
        set = set[0]
        #We should set a value
        playlists.setEditPlaylist(id, set, type)
    #Display the videos of this playlistID
    playlists.editPlaylist(id, type=type)
    if set == None:
        xbmcplugin.endOfDirectory(vars.addon_handle)
    else:
        xbmc.executebuiltin("Container.Refresh")
Exemplo n.º 4
0
def add_playlist(id, type=''):
    m_xml.xml_add_playlist(id, type)
    playlists.editPlaylist(id, type) #Load the view to edit this playlist
    #xbmc.executebuiltin("Container.Update")
    xbmcplugin.endOfDirectory(vars.addon_handle, updateListing=True)
def add_playlist(id, type=''):
    m_xml.xml_add_playlist(id, type)
    playlists.editPlaylist(id, type)  #Load the view to edit this playlist
    #xbmc.executebuiltin("Container.Update")
    xbmcplugin.endOfDirectory(vars.addon_handle, updateListing=True)
def apiAddPlaylist(id, type=''):
    playlist = ytlibrary_api.add_playlist(id, type)
    m_xml.xml_add_playlist(playlist['ytplaylistid'], type, playlist)
    playlists.editPlaylist(playlist['ytplaylistid'], type) #Load the view to edit this playlist
    #xbmc.executebuiltin("Container.Update")
    xbmcplugin.endOfDirectory(vars.addon_handle, updateListing=True)