check in lame scene_file fix and good beginning of fix_artist_album_date
This commit is contained in:
10
fix_artist_album_date
Executable file
10
fix_artist_album_date
Executable 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
|
Reference in New Issue
Block a user