added tool to fix deprecated id3 tags in flacs
This commit is contained in:
18
update_all_id3
Executable file
18
update_all_id3
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
log_file="$1"
|
||||
|
||||
if [[ -z "$log_file" ]]; then
|
||||
printf 'give a log file from encode_all\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! -r "$log_file" ]]; then
|
||||
printf '%s isnt a readable log file.\n' "$log_file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
time while read line; do
|
||||
file="/$(cut -d/ -f2- <<< "$line")"
|
||||
printf '%s\n' "$file"
|
||||
|
||||
done < "$log_file" | parallel -P 0 --bar ./flac_update_id3 {}
|
Reference in New Issue
Block a user