final unraid touches

This commit is contained in:
diegantobass 2025-06-24 11:02:38 +02:00
parent b900166ae7
commit 9ae2235da5

View file

@ -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 # 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 # 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 do
echo "Processing " "$d" echo "Processing " "$d"
echo "..." 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/ # moves the files into an path/to/music/folder/artist/album/
new_name=$(printf '%02d - %s.mp3' "$track_number" "$track"); 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";
mkdir -p "/mnt/user/music/nettoyage/youtubedl/$artist/$album"; mkdir -p "/mnt/user/music/nettoyage/youtubedl/$artist/$year - $album";
mv "$f" "/mnt/user/music/nettoyage/youtubedl/$artist/$album/$new_name"; mv "$f" "/mnt/user/music/nettoyage/youtubedl/$artist/$year - $album/$new_name";
done done
# removes the original folder # removes the original folder