tool update

This commit is contained in:
2025-09-15 14:06:09 +02:00
parent f7e22805f8
commit 7afe0d8f34
3 changed files with 5 additions and 1 deletions

View File

@@ -373,6 +373,7 @@ case "${1:-}" in
# This method reads the tags of the audio files in the specified directory.
# If the audio files contain MusicBrainz tags, and they are consistent, then
# a decoration file is written to that directory.
[ ! "$FFPROBE" ] && err "This option requires ffprobe. Quitting the application now." && exit 1
[ ! "${2:-}" ] && err "You did not specify a directory." && exit 1
[ ! -d "$2" ] && err "Path $2 does not point to a directory." && exit 1
if ! decorate "$2"; then

View File

@@ -31,7 +31,7 @@ fi
# The tags retrieved are the MusicBrainz release ID and the MusicBrainz track
# ID
__gettags() {
ffprobe -v error -show_entries format_tags -print_format json "$1" |
$FFPROBE -v error -show_entries format_tags -print_format json "$1" |
$JQ '.format.tags | {
trackid: (."MusicBrainz Release Track Id" // ."MUSICBRAINZ_RELEASETRACKID" // ."MusicBrainz/Release Track Id" // ""),
releaseid: (."MusicBrainz Album Id" // ."MUSICBRAINZ_ALBUMID" // ."MusicBrainz/Album Id" // "")

View File

@@ -49,6 +49,9 @@ if [ ! "${TOOLS_LOADED:-}" ]; then
fi
export SOCAT
command -v "ffprobe" >/dev/null && FFPROBE="ffprobe" || FFPROBE=""
export FFPROBE
command -v "xsel" >/dev/null && CLIP="xsel" || CLIP="true"
export CLIP