#NEWLINE# @ app . route ( '/play/album' , methods = [ 'GET' , 'POST' ] ) #NEWLINE# def play_album( ) : #NEWLINE# #INDENT# songs_by_artist = app . player . list_by_metadata ( key = 'artist' , value = request . form [ 'artist' ] ) #NEWLINE# album_list = request . form . getlist ( 'album' ) #NEWLINE# for filename in songs_by_artist : #NEWLINE# #INDENT# metadata = app . player . get_metadata ( filename ) #NEWLINE# if ( metadata . get ( 'album' ) in filename ) : #NEWLINE# #INDENT# app . player . play_filename ( filename ) #NEWLINE# #UNINDENT# #UNINDENT# return redirect ( '/' )