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)