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)})
def playlist_set( access_token): return oktmpl('')
def logout( access_token): try: session.logout( access_token) except Exception as e: return errtmpl( '{0}:{1}'.format( type(e), e)) return oktmpl()
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)})