@command(('mv\\s*(\\d{1,3})\\s*(%s)' % WORD))
def playlist_rename_idx(_id, name):
 _id = (int(_id) - 1)
 playlist_rename(((sorted(g.userpl)[_id] + ' ') + name))

@ command ( ( 'mv\\s*(\\d{1,3})\\s*(%s)' % WORD ) ) def playlist_rename_idx ( _id , name ) : _id = ( int ( _id ) - 1 ) playlist_rename ( ( ( sorted ( g . userpl ) [ _id ] + ' ' ) + name ) )
rename a playlist by id .