Skip to content

Parsing elements with dashes fails using mediainfo v22.09 #59

@juseveno

Description

@juseveno

with MediaInfoLib - v21.09, the command to generate output as XML seems to remove dashes from elements' names :

mediainfo <file> --Output=XML

<extra>
<WAVELISTYEAR>2020</WAVELISTYEAR>
</extra>

with MediaInfoLib - v22.09, the command returns elements' names with dashes :

mediainfo <file> --Output=XML

<extra>
<WAVELIST-YEAR>2020</WAVELIST-YEAR>
</extra>

This is causing issue with MediaInfo.from(<filepath>) :

NameError (`@wavelist-year' is not allowed as an instance variable name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions