Modified code since we want to process all tracks and not just tracksToShow
For some reason browser.view.tracks is empty but this code should be right if it contained the right tracks