updated scripts
This commit is contained in:
1 parent
2326f1fbbc
commit
41b55f96c1
118 files changed
+8245
-627
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 1. Choose the file
|
||||
echo "Select the ebook file:"
|
||||
select file in *.epub *.mobi *.pdf *.azw3; do
|
||||
if [ -n "$file" ]; then
|
||||
break
|
||||
else
|
||||
echo "Invalid selection."
|
||||
fi
|
||||
done
|
||||
|
||||
# 2. Prompt for metadata
|
||||
read -p "Enter Author: " author
|
||||
read -p "Enter Book Title: " title
|
||||
read -p "Enter ISBN-13: " isbn13
|
||||
read -p "Enter ASIN (optional): " asin
|
||||
read -p "Enter Goodreads ID: " grid
|
||||
|
||||
# 3. Apply metadata using ebook-meta
|
||||
# Adding the goodreads identifier is the most reliable fix for Readarr [6]
|
||||
ebook-meta "$file" \
|
||||
--authors "$author" \
|
||||
--title "$title" \
|
||||
--identifier "isbn:$isbn13" \
|
||||
--identifier "asin:$asin" \
|
||||
--identifier "goodreads:$grid"
|
||||
|
||||
echo "Metadata updated with Goodreads ID: $grid"
|
||||
Reference in new issue
Block a user