def minute_to_s(m):
    """
    >>> minute_to_s('[00:38.36]')
    38
    """
    time_str = m.strip('[|]')
    try:
        m_str, s_str = time_str.split(':')
        second = int(m_str) * 60 + int(float(s_str))
    except ValueError:
        second = 0
    return second
