From 4a006568707b12b47fe0e1b8fbb34283490622d8 Mon Sep 17 00:00:00 2001 From: Hikari Date: Tue, 10 Mar 2026 10:29:41 -0700 Subject: [PATCH] chore: update scripts to use Windows paths for books and music --- books.sh | 4 ++-- songs.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/books.sh b/books.sh index c51d678..0a01308 100755 --- a/books.sh +++ b/books.sh @@ -2,12 +2,12 @@ IFS=$'\n' # Initialize an empty string to hold the list of books in JSON-like format books="" -filecount=$(find /home/naomi/cloud/Books -type f | wc -l) +filecount=$(find "/mnt/c/Users/accou/Documents/iDrive/Cloud-Drive_accounts@nhcarrigan.com/Books" -type f | wc -l) echo "Found $filecount files." current=0 # Loop over each file found by find -for file in $(find /home/naomi/cloud/Books -type f -print0 | tr '\0' '\n'); do +for file in $(find "/mnt/c/Users/accou/Documents/iDrive/Cloud-Drive_accounts@nhcarrigan.com/Books" -type f -print0 | tr '\0' '\n'); do current=$((current + 1)) echo -ne "Processing $current/$filecount\r" title=$(exiftool "$file" | grep "^Title\s*:" | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//') diff --git a/songs.sh b/songs.sh index 8a9d783..627dae3 100755 --- a/songs.sh +++ b/songs.sh @@ -2,12 +2,12 @@ IFS=$'\n' # Initialize an empty string to hold the list of songs in JSON-like format songs="" -filecount=$(find /home/naomi/music -type f | wc -l) +filecount=$(find "/mnt/c/Users/accou/Music" -type f | wc -l) echo "Found $filecount files." current=0 # Loop over each file found by find -for file in $(find /home/naomi/music -type f -print0 | tr '\0' '\n'); do +for file in $(find "/mnt/c/Users/accou/Music" -type f -print0 | tr '\0' '\n'); do current=$((current + 1)) echo -ne "Processing $current/$filecount\r" title=$(mid3v2 -l "$file" | grep "TIT2\|TT2" | cut -d "=" -f 2)