diff --git a/bandcamp_format_utility.sh b/bandcamp_format_utility.sh index c39b341..dc75588 100755 --- a/bandcamp_format_utility.sh +++ b/bandcamp_format_utility.sh @@ -5,7 +5,7 @@ # It takes the first positional argument : a folder with youtube-dl downloaded audio-only tracks from bandcamp with their associated pictures and json metadata # And it parses the json to extract track name and number, album name, cover and number of tracks, and uses eyeD3 to updates the ID3 tags, rename and move the files -for d in "/mnt/user/downloads/youtube-dl/audio/*/"; +for d in /mnt/user/downloads/youtube-dl/autoprocessor/*/ do echo "Processing " "$d" echo "..." @@ -36,8 +36,8 @@ for d in "/mnt/user/downloads/youtube-dl/audio/*/"; # moves the files into an path/to/music/folder/artist/album/ new_name=$(printf '%02d - %s.mp3' "$track_number" "$track"); mkdir -p "/mnt/user/music/nettoyage/youtubedl/$artist"; - mkdir -p "/mnt/user/music/nettoyage/youtubedl/$artist/$album"; - mv "$f" "/mnt/user/music/nettoyage/youtubedl/$artist/$album/$new_name"; + mkdir -p "/mnt/user/music/nettoyage/youtubedl/$artist/$year - $album"; + mv "$f" "/mnt/user/music/nettoyage/youtubedl/$artist/$year - $album/$new_name"; done # removes the original folder