tool update
This commit is contained in:
@@ -373,6 +373,7 @@ case "${1:-}" in
|
|||||||
# This method reads the tags of the audio files in the specified directory.
|
# 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
|
# If the audio files contain MusicBrainz tags, and they are consistent, then
|
||||||
# a decoration file is written to that directory.
|
# 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
|
[ ! "${2:-}" ] && err "You did not specify a directory." && exit 1
|
||||||
[ ! -d "$2" ] && err "Path $2 does not point to a directory." && exit 1
|
[ ! -d "$2" ] && err "Path $2 does not point to a directory." && exit 1
|
||||||
if ! decorate "$2"; then
|
if ! decorate "$2"; then
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ fi
|
|||||||
# The tags retrieved are the MusicBrainz release ID and the MusicBrainz track
|
# The tags retrieved are the MusicBrainz release ID and the MusicBrainz track
|
||||||
# ID
|
# ID
|
||||||
__gettags() {
|
__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 | {
|
$JQ '.format.tags | {
|
||||||
trackid: (."MusicBrainz Release Track Id" // ."MUSICBRAINZ_RELEASETRACKID" // ."MusicBrainz/Release Track Id" // ""),
|
trackid: (."MusicBrainz Release Track Id" // ."MUSICBRAINZ_RELEASETRACKID" // ."MusicBrainz/Release Track Id" // ""),
|
||||||
releaseid: (."MusicBrainz Album Id" // ."MUSICBRAINZ_ALBUMID" // ."MusicBrainz/Album Id" // "")
|
releaseid: (."MusicBrainz Album Id" // ."MUSICBRAINZ_ALBUMID" // ."MusicBrainz/Album Id" // "")
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ if [ ! "${TOOLS_LOADED:-}" ]; then
|
|||||||
fi
|
fi
|
||||||
export SOCAT
|
export SOCAT
|
||||||
|
|
||||||
|
command -v "ffprobe" >/dev/null && FFPROBE="ffprobe" || FFPROBE=""
|
||||||
|
export FFPROBE
|
||||||
|
|
||||||
command -v "xsel" >/dev/null && CLIP="xsel" || CLIP="true"
|
command -v "xsel" >/dev/null && CLIP="xsel" || CLIP="true"
|
||||||
export CLIP
|
export CLIP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user