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