'Fetches a track by its Beatport ID and returns a TrackInfo object
or None if the track is not found.'

def track_for_id(self, track_id):

    self._log.debug(u'Searching    for    track    {0}', track_id)
    match = re.search('(^|beatport\\.com/track/.+/)(\\d+)$', track_id)
    if (not match):
        return None
    bp_track = self.client.get_track(match.group(2))
    track = self._get_track_info(bp_track)
    return track
