minor bug fixes
This commit is contained in:
@@ -75,17 +75,17 @@ __batch_load_missing() {
|
||||
while IFS= read -r mbid; do
|
||||
case "$1" in
|
||||
"$TYPE_ARTIST")
|
||||
mb_artist "$mbid" >/dev/null
|
||||
name=$(mb_artist "$mbid" | $JQ -r ".name")
|
||||
;;
|
||||
"$TYPE_RELEASEGROUP")
|
||||
mb_releasegroup "$mbid" >/dev/null
|
||||
name=$(mb_releasegroup "$mbid" | $JQ -r ".title")
|
||||
;;
|
||||
"$TYPE_RELEASE")
|
||||
mb_release "$mbid" >/dev/null
|
||||
name=$(mb_release "$mbid" | $JQ -r ".title")
|
||||
;;
|
||||
esac
|
||||
cnt=$((cnt + 1))
|
||||
printf "\033[K\r%d/%d (%s: %s)" "$cnt" "$lines" "$mbid" "$($JQ -r ".name // .title")"
|
||||
printf "\033[2K\r%d/%d (%s: %s)" "$cnt" "$lines" "$mbid" "$name"
|
||||
sleep 1
|
||||
done <"$tmpf"
|
||||
printf "\n"
|
||||
|
Reference in New Issue
Block a user