dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 19c3e013e70ec6474c035529e3cc1b4f3670caf1
parent 7d454b875bbdf2c420b7111415e962869bb5a344
Author: hhvn <dev@hhvn.uk>
Date:   Mon,  5 Sep 2022 16:04:53 +0100

Fix metadata gathering from opus

Diffstat:
M.scripts/tag/get | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.scripts/tag/get b/.scripts/tag/get @@ -19,7 +19,14 @@ for (f in $*) { printf '%sCould not locate file.\n' $label >[1=2] continue } - ffmpeg -i $f -f ffmetadata - >[2]/dev/null | + + if (~ $f *.opus) { + eargs = (-map_metadata 0:s:a:0) + } else { + eargs = () + } + + ffmpeg -i $f $eargs -f ffmetadata - >[2]/dev/null | awk -vlabel=^$label '/=/ { key = $0; sub(/=.*/, "", key) pad = key; gsub(/./, " ", pad)