Skip to content

Instantly share code, notes, and snippets.

@earthmeLon
Last active June 20, 2021 03:29
Show Gist options
  • Save earthmeLon/ba37c9baef70c55d3be673398f334773 to your computer and use it in GitHub Desktop.
Save earthmeLon/ba37c9baef70c55d3be673398f334773 to your computer and use it in GitHub Desktop.
What a bunch of bullshit, Traktor.
#!/bin/bash
# @earthmeLon
unset x
unset y
x="$(metaflac "$1" --show-tag=PUBLISHER| sed -rn 's/PUBLISHER=(.*)[\;]*/\1/p' )"
# Only take the first value, since Traktor doesn't support multi-value tags AT ALL.
y="$(metaflac "$1" --show-tag=LABEL| sed -rn 's/LABEL=(.*)[\;]*/\1/p' )"
if [[ -z $x && -n $y ]]; then
echo -e "$y\t\t\t$1"
# Set PUBLISHER as LABEL because Traktor is Microsoft'ing us again...
metaflac "$1" --set-tag=PUBLISHER="$y"
fi
# find -name '*.flac' -exec bash -c 'SetUnsetPublishTagToLabelValue "$0"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment