/** * Component: E-book Settings Tab * Documentation: documentation/settings-pages.md * * Three-section layout: * 1. Anna's Archive - Direct HTTP downloads from Anna's Archive * 2. Indexer Search - Search via Prowlarr indexers (future feature) * 3. General Settings - Shared settings like preferred format */ 'use client'; import React from 'react'; import { Button } from '@/components/ui/Button'; import { Input } from '@/components/ui/Input'; import { useEbookSettings } from './useEbookSettings'; import type { EbookSettings } from '../../lib/types'; interface EbookTabProps { ebook: EbookSettings; onChange: (ebook: EbookSettings) => void; onSuccess: (message: string) => void; onError: (message: string) => void; markAsSaved: () => void; } export function EbookTab({ ebook, onChange, onSuccess, onError, markAsSaved }: EbookTabProps) { const { saving, testingFlaresolverr, flaresolverrTestResult, updateEbook, testFlaresolverrConnection, saveSettings, isAnySourceEnabled, } = useEbookSettings({ ebook, onChange, onSuccess, onError, markAsSaved }); return (
Automatically download e-books to accompany your audiobooks. E-books are placed in the same folder as the audiobook files.
Download e-books directly from Anna's Archive using ASIN or title matching.
Change this if the primary Anna's Archive mirror is unavailable.
FlareSolverr helps bypass Cloudflare protection.
{flaresolverrTestResult && (Note: Without FlareSolverr, e-book downloads may fail if Anna's Archive has Cloudflare protection enabled.
Search for e-books via Prowlarr indexers (torrent/NZB sources).
Configure Categories: E-book category settings are configured per-indexer in the Indexers tab. Look for the "EBook" tab when editing an indexer.
EPUB is recommended for most e-readers. "Any format" accepts the first available.
When enabled, ebook requests are created automatically after audiobook downloads complete. When disabled, use the "Fetch Ebook" button on completed requests.
Apply compatibility fixes before organizing EPUB files. Fixes encoding declarations, broken hyperlinks, invalid language tags, and orphaned image elements that can cause Kindle import failures.