#NEWLINE# @ reconnect #NEWLINE# def play( self , songs = False , playlist_name = False ) : #NEWLINE# #INDENT# '\n            Plays the current song or accepts a song to play.\n\n            Arguments:\n            songs -- a list of song objects\n            playlist_name -- user-defined, something like "Love Song Playlist"\n        ' #NEWLINE# if songs : #NEWLINE# #INDENT# self . client . clear ( ) #NEWLINE# for song in songs : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . client . add ( song . id ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if playlist_name : #NEWLINE# #INDENT# self . client . clear ( ) #NEWLINE# self . client . load ( self ) #NEWLINE# #UNINDENT# self . client . play ( )