check in lame scene_file fix and good beginning of fix_artist_album_date

This commit is contained in:
2023-04-29 16:21:06 -04:00
parent b8789db0ef
commit e9de91b555
2 changed files with 46 additions and 0 deletions

10
fix_artist_album_date Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
dir="$(pwd)"
readarray -t album_paths < <(find "$dir" -mindepth 1 -type d)
for path in "${album_paths[@]}"; do
year_album="$(sed 's#.*/##' <<< "$path")"
year="${year_album%% *}"
album="${year_album#* }"
printf 'Year: %s Album: %s\n' "$year" "$album"
done