#!/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"