1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 13:22:58 +03:00
fq/format/matroska/matroska.jq
2021-11-05 17:29:22 +01:00

3 lines
218 B
Plaintext

# <matroska value> | matroska_path(".Segment.Tracks[0].TrackEntry[1].CodecID") -> element
# <matroska value> | matroska_path(<matroska value>) -> ".Segment.Tracks[0]"
def matroska_path(p): tree_path(.elements; .id; p);