From 9ae2235da5c053cb03b0c64ae0690a4eb6118c25 Mon Sep 17 00:00:00 2001 From: diegantobass Date: Tue, 24 Jun 2025 11:02:38 +0200 Subject: [PATCH] final unraid touches --- bandcamp_format_utility.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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