'Returns the track length in seconds for a discogs duration.'

def get_track_length(self, duration):

    try:
        length = time.strptime(duration, '%M:%S')
    except ValueError:
        return None
    return ((length.tm_min * 60) + length.tm_sec)
