commit 92bea14bb3970310e2a02bdda20f78a641215fc1 parent 2677745890a347afe7162e11b70a93c7bf0bbc0d Author: hhvn <dev@hhvn.uk> Date: Mon, 22 Aug 2022 11:50:12 +0100 Stop sorting stuff for me! Diffstat:
A | .scripts/tag/clearsort | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/.scripts/tag/clearsort b/.scripts/tag/clearsort @@ -0,0 +1,13 @@ +#!/bin/rc +# Clear annoying sorting tags. Different people want things sorted in different +# ways. Let software (i,e, cmus) do it rather than hardcoding different sorting +# systems into files. + +fn sigexit { + rm $tmp +} + +for (f in $*) { + tmp = /tmp/$pid.`$nl{echo $f | tr / _} + ffmpeg -y -nostdin -i $f -c copy -metadata TSOP='' -metadata TSOA='' -metadata TSOC='' -metadata TSO2='' -metadata XSOP='' -metadata XSOA='' -metadata XSOC='' -metadata TSP='' -metadata TS2='' -metadata TSA='' -metadata TSC='' -metadata albumsort='' -metadata artistsort='' -metadata albumartistsort='' -metadata album-sort='' -metadata artist-sort='' -metadata albumartist-sort='' $tmp && mv $tmp $f +}