Exemplo n.º 1
0
def playlist_insert( access_token, sno, pos=0):
    try:
        session.playlist_insert( access_token, sno, pos)
    except Exception as e:
        return errtmpl( '{0}:{1}'.format( type(e), e))
    return oktmpl({'OK':'{0} inserted'.format( sno)})
Exemplo n.º 2
0
def playlist_set( access_token):
    return oktmpl('')
Exemplo n.º 3
0
def logout( access_token):
    try:
        session.logout( access_token)
    except Exception as e:
        return errtmpl( '{0}:{1}'.format( type(e), e))
    return oktmpl()
Exemplo n.º 4
0
def playlist_delete( access_token, pos=999):
    try:
        session.playlist_delete( access_token, pos)
    except Exception as e:
        return errtmpl( '{0}:{1}'.format( type(e), e))
    return oktmpl({'OK':'{0}th song deleted'.format( pos)})