def get_downloaded_track_list(albumpath):
 downloaded_track_list = []
 for (root, dirs, files) in os.walk(albumpath):
  for _file in files:
   extension = os.path.splitext(_file)[1].lower()[1:]
   if (extension in headphones.MEDIA_FORMATS):
    downloaded_track_list.append(os.path.join(root, _file))
 return downloaded_track_list

def get_downloaded_track_list ( albumpath ) : downloaded_track_list = [ ] for ( root , dirs , files ) in os . walk ( albumpath ) : for _file in files : extension = os . path . splitext ( _file ) [ 1 ] . lower ( ) [ 1 : ] if ( extension in headphones . MEDIA_FORMATS ) : downloaded_track_list . append ( os . path . join ( root , _file ) ) return downloaded_track_list
return a list of audio files for the given directory .