Skip to content

Add support for track_tags and global tags in MKVFile #44

@rcolfin

Description

@rcolfin

Currently global_tags and track_tags are an internal implementation detail of the mkv.info_json. Expose these properties in the pymkv.MKVFile instance. In this case, if one wants to strip out this detail based on whether it is specified in the mkv file, one needs to do the following:

    mkv_info_json = cast(dict[str, Any], mkv._info_json or {})  # noqa: SLF001
    if mkv_info_json.get("global_tags"):
        no_global_tags = True

    if mkv_info_json["track_tags"]:
        no_track_tags = True

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions