Last active
June 20, 2021 03:29
-
-
Save earthmeLon/ba37c9baef70c55d3be673398f334773 to your computer and use it in GitHub Desktop.
What a bunch of bullshit, Traktor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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