#NEWLINE# def cmd_playlistinfo( self , conn , index = ( - 1 ) ) : #NEWLINE# #INDENT# 'Gives metadata information about the entire playlist or a\n        single track, given by its index.\n        ' #NEWLINE# index = cast_arg ( int , index ) #NEWLINE# if ( track == ( - 1 ) ) : #NEWLINE# #INDENT# for track in self . playlist : #NEWLINE# #INDENT# ( yield self . _item_info ( track ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# track = self . playlist [ index ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise ArgumentIndexError ( ) #NEWLINE# #UNINDENT# ( yield self . _item_info ( track ) )