1
1
mirror of https://github.com/wader/fq.git synced 2024-11-25 23:13:19 +03:00
fq/format/matroska/matroska.jq
Mattias Wadman 970465996c Init
2021-09-12 13:08:42 +02:00

3 lines
226 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._symbol; p);