improved local loading and decorating
This commit is contained in:
@@ -85,7 +85,7 @@ __batch_load_missing() {
|
||||
;;
|
||||
esac
|
||||
cnt=$((cnt + 1))
|
||||
printf "\033[K\r%d/%d (%s)" "$cnt" "$lines" "$mbid"
|
||||
printf "\033[K\r%d/%d (%s: %s)" "$cnt" "$lines" "$mbid" "$($JQ -r ".name // .title")"
|
||||
sleep 1
|
||||
done <"$tmpf"
|
||||
printf "\n"
|
||||
@@ -105,8 +105,7 @@ load_local() {
|
||||
tmpreleases=$(mktemp)
|
||||
[ -f "$tmpreleases" ] || exit 1
|
||||
find "$MUSICDIR" -type f -name "$DECORATION_FILENAME" -print0 |
|
||||
xargs -0 -I {} \
|
||||
$JQ -r '.releaseid+"\t"+input_filename' {} |
|
||||
xargs -0 -P 4 $JQ -r '.releaseid+"\t"+input_filename' |
|
||||
tee "$LOCALDATA_RELEASES" |
|
||||
cut -d "$(printf '\t')" -f 1 >"$tmpreleases"
|
||||
__batch_load_missing "$TYPE_RELEASE" "$tmpreleases"
|
||||
|
Reference in New Issue
Block a user