From 9c89f728b29132245671cec2ebd5a01738637df6 Mon Sep 17 00:00:00 2001 From: Hikari Date: Tue, 10 Mar 2026 17:16:35 -0700 Subject: [PATCH] feat(books,games,music): redirect to library.nhcarrigan.com Remove books.sh and songs.sh scripts, replacing the interactive library pages with simple redirects to the centralised library site. --- books.sh | 36 -------------- books/index.html | 111 +++---------------------------------------- games/index.html | 27 ++--------- music/index.html | 120 +++-------------------------------------------- songs.sh | 32 ------------- 5 files changed, 15 insertions(+), 311 deletions(-) delete mode 100755 books.sh delete mode 100755 songs.sh diff --git a/books.sh b/books.sh deleted file mode 100755 index bd5d010..0000000 --- a/books.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -# Initialize an empty string to hold the list of books in JSON-like format -books="" -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 -while IFS= read -r -d $'\0' file; do - current=$((current + 1)) - echo -ne "Processing $current/$filecount\r" - title=$(exiftool "$file" | grep "^Title\s*:" | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//') - author=$(exiftool "$file" | grep "^Creator\s*:" | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//') - - if [ -z "$title" ]; then - # remove extension from the filename - title=$(basename "$file" | sed -e 's/\.[^.]*$//') - fi - if [ -z "$author" ]; then - author=$(exiftool "$file" | grep "^Author\s*:" | cut -d ":" -f 2 | sed -e 's/^[[:space:]]*//') - fi - if [ -z "$author" ]; then - author="Unknown Author" - fi - - # use jq to add the book to the list - books="$books$(jq -n --arg title "$title" --arg author "$author" '{title: $title, author: $author}')," -done < <(find "/mnt/c/Users/accou/Documents/iDrive/Cloud-Drive_accounts@nhcarrigan.com/Books" -type f -print0) - -# Remove trailing comma and add square brackets to complete the list -books="[${books%,}]" - -# Write to ./books/books.json -echo "$books" > ./books/books.json -echo -ne "Done!\r" diff --git a/books/index.html b/books/index.html index 1e5679e..05d8bfc 100644 --- a/books/index.html +++ b/books/index.html @@ -4,114 +4,15 @@ Naomi's Book Library - +
-

Naomi's Book Library

-
-

An interactive explorer for the books Naomi reads.

-

Loading library...

-
-
- Search Authors: - -
-
- Search Titles: - -
-
- -
- - -
+

Naomi's Book Library

+
+

This page has moved! You can find Naomi's book library at library.nhcarrigan.com.

+
- - - \ No newline at end of file + diff --git a/games/index.html b/games/index.html index 55bcabd..bbb4cd9 100644 --- a/games/index.html +++ b/games/index.html @@ -4,36 +4,15 @@ Games - +

Games

-

These are the various games we have developed.

-
-
-

Links

-

- - 🩵 Beccalia Series - -

-

- - 🩷 Ruu's Goblin Quest - -

-

- - 🩵 Life of a Naomi - -

-

- We are currently on a hiatus from game development. But we may return in the future - be sure to join our Discord server so you don't miss any updates~! -

+

This page has moved! You can find Naomi's game library at library.nhcarrigan.com.

- \ No newline at end of file + diff --git a/music/index.html b/music/index.html index f70fa50..c83394e 100644 --- a/music/index.html +++ b/music/index.html @@ -4,123 +4,15 @@ Naomi's Music Library - +
-

Naomi's Music Library

-
-

An interactive explorer for the music Naomi listens to.

-

Loading library...

-
-
- Search Artists: - -
-
- Search Titles: - -
-
- -
- - -
+

Naomi's Music Library

+
+

This page has moved! You can find Naomi's music library at library.nhcarrigan.com.

+
- - - \ No newline at end of file + diff --git a/songs.sh b/songs.sh deleted file mode 100755 index cd0ec58..0000000 --- a/songs.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# Initialize an empty string to hold the list of songs in JSON-like format -songs="" -filecount=$(find "/mnt/c/Users/accou/Music" -type f | wc -l) -echo "Found $filecount files." -current=0 - -# Loop over each file found by find -while IFS= read -r -d $'\0' file; do - current=$((current + 1)) - echo -ne "Processing $current/$filecount\r" - title=$(mid3v2 -l "$file" | grep "TIT2\|TT2" | cut -d "=" -f 2) - artist=$(mid3v2 -l "$file" | grep "TPE1\|TP1" | cut -d "=" -f 2) - if [ -z "$title" ]; then - # remove .mp3 from the title - title=$(basename "$file" | sed -e 's/\.mp3//g') - fi - if [ -z "$artist" ]; then - artist="Unknown Artist" - fi - - # use jq to add the song to the list - songs="$songs$(jq -n --arg title "$title" --arg artist "$artist" '{title: $title, artist: $artist}')," -done < <(find "/mnt/c/Users/accou/Music" -type f -print0) - -# Remove trailing comma and add square brackets to complete the list -songs="[${songs%,}]" - -# Write to ./music/songs.json -echo "$songs" > ./music/songs.json -echo -ne "Done!\r"