@command('(rm|add)\\s(?:\\*|all)')
def add_rm_all(action):
 if (action == 'rm'):
  g.model.songs.clear()
  msg = ((c.b + 'Cleared all songs') + c.w)
  g.content = content.generate_songlist_display(zeromsg=msg)
 elif (action == 'add'):
  size = len(g.model)
  songlist_rm_add('add', ('-' + str(size)))

@ command ( '(rm|add)\\s(?:\\*|all)' ) def add_rm_all ( action ) : if ( action == 'rm' ) : g . model . songs . clear ( ) msg = ( ( c . b + 'Cleared all songs' ) + c . w ) g . content = content . generate_songlist_display ( zeromsg = msg ) elif ( action == 'add' ) : size = len ( g . model ) songlist_rm_add ( 'add' , ( '-' + str ( size ) ) )
add all displayed songs to current playlist .