'Load the :class:`Chapter` from an :class:`~enzyme.parsers.ebml.Element`
:param element: the ChapterAtom element
:type element: :class:`~enzyme.parsers.ebml.Element`'

@classmethod
def fromelement(cls, element):

    start = timedelta(microseconds=(element.get('ChapterTimeStart') // 1000))
    hidden = element.get('ChapterFlagHidden', False)
    enabled = element.get('ChapterFlagEnabled', True)
    end = element.get('ChapterTimeEnd')
    chapterdisplays = [c for c in element if (c.name == 'ChapterDisplay')]
    if (len(chapterdisplays) > 1):
        logger.warning('More    than    1    (%d)    ChapterDisplay    element    in    the    ChapterAtom,    using    the    first    one', len(chapterdisplays))
    if chapterdisplays:
        string = chapterdisplays[0].get('ChapString')
        language = chapterdisplays[0].get('ChapLanguage')
        return cls(start, hidden, enabled, end, string, language)
    return cls(start, hidden, enabled, end)
