def get_track_length(self, duration):
        """Returns the track length in seconds for a discogs duration.
        """
        try:
            length = time.strptime(duration, '%M:%S')
        except __HOLE__:
            return None
        return length.tm_min * 60 + length.tm_sec
dataset/ETHPy150Open beetbox/beets/beetsplug/discogs.py/DiscogsPlugin.get_track_length